background preloader

Ten Things Every WordPress Plugin Developer Should Know - Smashing Magazine

Ten Things Every WordPress Plugin Developer Should Know - Smashing Magazine
Advertisement Plugins are a major part of why WordPress powers millions of blogs and websites around the world. The ability to extend WordPress to meet just about any need is a powerful motivator for choosing WordPress over other alternatives. Having written several plugins myself, I’ve come to learn many (but certainly not all) of the ins-and-outs of WordPress plugin development, and this article is a culmination of the things I think every WordPress plugin developer should know. Oh, and keep in mind everything you see here is compatible with WordPress 3.0+. Don’t Develop Without Debugging The first thing you should do when developing a WordPress plugin is to enable debugging, and I suggest leaving it on the entire time you’re writing plugin code. Enabling debugging also turns on WordPress notices, which is important because that’s how you’ll know if you’re using any deprecated functions. How to Enable Debugging define('WP_DEBUG', false); Replace that line with the following: if (! if (!

WordPress Debug Bar Plugin | BlackBox Here is something that WordPress developers might find very useful. Recently when working with symfony i figured out it would awesome to have debug bar in WordPress, similar like symfony has since version 1.0. After Googling WordPress debug plugin it turned out there was no such solution so i decided to developed one myself. Here is why you will find it helpful: instantly inspect global variables (GET, POST, COOKIE, SERVER)debug both frontend and admin areaexecuted MySQL queries and time it took to execute each query (useful for finding slow queries)profiler for measuring performance of your plugins and themeserrors occurred when loading WordPress page If you will decide to use the plugin please remember it’s not a perfect solution, it uses some workarounds, but it’s gets the job done, is lightweight and unobstrusive which i think is most important. Basically the debug bar is attached to the top of the browser window. Globals BTW. Profiler This is probably most useful feature of all. Errors

9 WordPress Plugins To Detect Malicious Code In Your Site WordPress is one of the most popular content management systems (CMS) used by people either for simple blogging or other purposes like setting up an e-commerce store. There are plugins and themes to choose from as well. Some of them are free while other are not. Often, a few of these themes are actually uploaded by people who have tweaked them for their own gain. They could possibly filled with malicious code that can easily hack your blog. Recommended Reading: 12 Essential Plugins For WordPress Developers 1. Theme Authenticity Checker (TAC) is a WordPress plugin which scans the source file of each installed WordPress theme for malicious code such as hidden footer links and Base64 codes. 2. Exploit Scanner can scan the files and database of your website and is able to detect if something dubious is present. 3. Sucuri is a well reputed security and malware scanning WordPress plugin. 4. 5. 6. 7. 8. 9.

Wordpress Oh well, it’s too late now, it passed: Your Inspiration Web celebrated two years of life and nobody gave us their best wishes. Of course, it’s our fault, we didn’t say anything, we didn’t organize anything, not even a small party this year therefore our second anniversary passed quietly. In reality in the past weeks we have been working behind the scenes to release a free resource just for this occasion, but unfortunately for one reason or another, the date was always postponed and we completed this project only in these days. It was tough, as they say, but we did it: we present Beauty & Clean, a {*style:<b>*}free WordPress theme in minimal style,{*style:</b>*} elegant completely controllable by the panel. Our small gift to celebrate with you our first two years of activity.

WordPress Hooks Plugin API/Action Reference Languages: English • Русский • 日本語 • Português do Brasil • (Add your language) This is a (hopefully) comprehensive list of action hooks available in WordPress version 2.1 and above. For more information: To learn more about what filter and action hooks are, see Plugin API. To learn about writing plugins in general, see Writing a Plugin. For a reference list of filter hooks, see Plugin API/Filter Reference. (If you want to add to or clarify this documentation, please follow the style of the existing entries. Actions Run During a Typical Request These actions are called when a logged-in user opens the home page in Version 3.3.1. Actions are called with the function do_action(), except those marked (ref array), which are called with the function do_action_ref_array(). Actions Run During an Admin Page Request These actions are run when a logged-in user opens the Posts page in Version 3.3.1. In these actions, (hookname) depends on the page. Post, Page, Attachment, and Category Actions (Admin)

Creating Child Themes Documentation / WordPress child theme allows you change the functionality of the theme without having to edit the original/parent theme template files. If you need to modify any template file, we recommend to create a child theme instead of editing the theme template files. Since the child theme is stored separately, you don't need to redo the changes next time you upgrade the theme. How Child Theme Works Basically once the child theme is activated, WordPress will look for the template files in the child theme folder first. 1) Creating a Child Theme: To start a child theme, create a new theme folder (eg. Theme Name (required) = use the parent theme name + child to make it easy to identify (eg. /* Theme Name: Folo Child Description: Child theme for Folo theme Author: Themify Template: folo */ /* write custom css */ Finally, we need to load the stylesheet of the parent theme. 2) Overriding Parent Theme Template Files For example: For another example: Child Theme functions.php (optional)

Using HTML5 To Transform WordPress’ TwentyTen Theme - Smashing Magazine Transférer son site distant WordPress en local en moins de 10 étapes Parce qu’il m’est arrivé de me planter plus d’une fois sur des transferts de sites de distant à local avec WordPress, je tenais à partager ma méthode à d’autres, qui, comme moi se sont assez régulièrement pris la tête sur cette manipulation. Vous rencontrerez très souvent ce cas lors de la refonte d’un site. On peut aussi avoir besoin de sauvegarder son site sur son serveur local. Voici donc une méthode sans risque pour transférer un site existant sur le web sous WordPress vers son serveur local. 1. Export de la base de données Avant toute chose, il faut commencer par exporter la base de données de votre site existant en ligne. Une fois connecté à votre base de données, il faut l’exporter mais pas entièrement. Choisissez une exportation personnalisée et trouvez les meilleurs paramètres selon le cas. 2. Une fois votre base de données téléchargée, vous allez devoir mettre les mains dedans, mais ça reste hyper simple. 3. 4. 5. A ce moment, il faut retourner sur le phpMyAdmin local. 6. 7. 8.

Administration Menus Administration Menus Languages: English • 中文(简体) • 日本語 • Русский • (Add your language) Introduction Usually, plugin and theme authors need to provide access to a settings (options) screen so users can customize how the plugin or theme is used. The best way to present the user with such a screen is to create an administration menu item that allows the user to access that settings screen from all the Administration Screens. This article explains how plugin authors can add administration menus and screens. Function Reference Every Plot Needs a Hook To add an administration menu, you must do three things: Create a function that contains the menu-building code Register the above function using the admin_menu action hook. It is that second step that is often overlooked by new developers. Here is a very simple example of the three steps just described. <? In this example, the function my_plugin_menu() adds a new item to the Settings administration menu via the add_options_page() function. Dashboard

10 WordPress Plugins For Better Backend Administration One of the best parts about WordPress is how easy it is to customize with plugins. To illustrate its flexibility, here are a few examples of what you can do on your WordPress site with plugins: Even though WordPress is designed to cater to as many scenarios as possible, you might want to change things like removing a menu from the Dashboard for particular users, or to simplify the backend for less technically savvy users such as your clients, or even to better and more easily manage widgets. Here are 10 handy plugins that will give you all that and more. Recommended Reading: Find And Install WordPress Plugins Through Github 1. Adminimize is the plugin to install if you let your clients have access to the backend. 2. Once activated, Client Dash simplifies the WordPress dashboard. 3. There are actually two types of widget in WordPress. 4. If you think that clients should not be allowed to access to the Dashboard, you can install Remove Dashboard Access. 5. 6. 7. 8. 9. 10.

Related: