Wordpress Plugin Tutorials

WordPress Admin Page Redirected To Homepage

In this wordpress post, i added the sourcecode to redirect the page or denied the permission When the unauthorized user level will try to access the admin section. Using this sourcecode i am allowing administrator and editor to access the admin panel. Otherwise i am redirecting the user to home page.You can modify redirect url When access the admin panel. I allowed administrator and editor to access the admin section […]... Read More »

WordPress Redirect Page After Login

In this WordPress post, i added the source code to redirect the page after the log in like simple redirect plugin. I would like to give the access of admin panel for “administrator” and “editor” roles of WordPress user. Otherwise i am redirecting the user to home page.You can modify redirect URL after login. I allowed administrator and editor to access the admin section and denied the permission for contributor, […]... Read More »

Create WordPress Admin Menu Plugin

I am learing about “How to develop wordpress plugin”. In this tutorial i will give some information about “How to add wordpress plugin menu in admin menu list”. I did it using function and class. I added my sourcecode below. Create [Plugin] Admin Menu Using ClassCreate [Plugin] Admin Menu Using Function [Without class]Create [Plugin] Admin Menu Using Class <?php /** class ***/ class bscode_my_plugin_loader{ function bscode_my_plugin_loader(){ add_action('admin_menu',array(&$this,'bscode_top_level_menu')); } function bscode_top_level_menu(){ […]... Read More »

Setting link for wordpress plugin

This tutorial will help you to set the “settings” link to your plugin in plugin list page “../wp-admin/plugins.php”.I added one function “add_settings_link_to_your_plugins” to set the setting link and i called this function using add_filter() method. // Add settings link to your wordpress plugin page function add_settings_link_to_your_plugins($links) { $settings_link = ' Settings'; array_unshift($links, $settings_link); return $links; } $pluginurl = plugin_basename(__FILE__); add_filter( "plugin_action_links_$pluginurl", 'add_settings_link_to_your_plugins' );... Read More »