Wordpress | Learn for Master
  • Good resources learn how to develop WordPress plugin

    Admin panel

    Create a Custom WordPress Plugin From Scratch

    This tutorial is from: http://code.tutsplus.com/tutorials/create-a-custom-wordpress-plugin-from-scratch–net-2668

    1 Files and folders

    WordPress stores its plugins in the wp-content/plugins/ folder. This is the place where we’ll be adding our files as well.

    we are going to use two files (one for the main plugin file and one for implementing the administration page) therefore we’ll be putting all our files in a specific folder that we’ll name oscommerce_importer

    2. Creating the plugin file

    Now we create our main plugin file. We’ll name it as  itoscommerce_importer.php.

    [Read More...]
  • How to create plugins for wordpress

    Screen Shot 2015-03-18 at 9.41.47 pm

    Here are two good examples to show how to add buttons to wordpress editor by build wordpress plugins. 

    WordPress has two different editors: TinyMCE editor(i.e., visual editor) and Text editor(i.e., HTML editor).

    WordPress also lets us create custom buttons to both of the visual and text(or HTML) editor. To add a button for Text editor we need to use Quicktags API and to add buttons to the TinyMCE editor we have to use JavaScript APIs provided by the TinyMCE library. Here are two articles that will help you to learn these APIs.

    Add Buttons to WordPress Text Editor

    Here is an example code snippet which adds a button to the WordPress code editor and wraps the selected text using [code][/code] tags.

    [Read More...]
  • How to use memcached in WordPress

    What is Memcached?

    Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.

    Memcached is simple yet powerful. Its simple design promotes quick deployment, ease of development, and solves many problems facing large data caches. Its API is available for most popular languages.

    You can get more information of memecached from this link: https://github.com/memcached/memcached/wiki

    Why do you use Memcached?

    By using memcached (properly), you limit the number of queries to the database (because they’ll read the results from memcached instead).

    [Read More...]