Add Admin menu in wordpress

Posted June 23rd, 2010 in Blog by admin

It’s sample plugin

<?php

/**

* @package plugin

* @version 1

*/

/*

Plugin Name: Test

Plugin URI: http://www.saturngod.net/#

Description: Test

Author: saturngod

Version: 1

Author URI: http://www.saturngod.net

*/

//call to add menu

add_action(‘admin_menu’,'add_menu’);

function add_menu()

{

//Add Parent Menu

add_menu_page(‘Page title’, ‘Top-level menu title’, ‘manage_options’, ‘my-top-level-handle’, ‘my_magic_function’);

//Add Sub Menu

add_submenu_page( ‘my-top-level-handle’, ‘Page title’, ‘Sub-menu title’, ‘manage_options’, ‘my-submenu-handle’, ‘my_magic_function’);

}

//Function work for menu

function my_magic_function()

{

echo “TEST”;

}

?>

do not have sufficient permissions in WP Admin

Posted June 12th, 2010 in Blog by admin

Yesterday, I change wp_ to prefix_ in database prefix. I can’t login my wp-admin. I found a solution from this website.

After I run this sql , I can login my wp admn again.

UPDATE `prefix_usermeta` SET `meta_key` = REPLACE( `meta_key` , 'wp_', 'prefix_' );

UPDATE `prefix_options` SET `option_name` = 'prefix_user_roles' WHERE `option_name` ='wp_user_roles' AND `blog_id` =0;

Tip: Change database prefix with following sql

RENAME TABLE old_table TO new_table,
              old_table TO new_table,
              old_table TO new_table,
              old_table TO new_table;

You need to change table name.

Facebook Like WP Plugin

Posted May 11th, 2010 in Portfolio by admin

Facebook like is a wordpress plugin for facebook like plugins.

Feature

  • Layout Detail
  • Customize Show in page,post,front end

Technology

  • PHP
  • WordPress

Update Facebook Like WP Plugin

Posted May 4th, 2010 in Blog by admin

Now Support Layout in Plugins. You can your facebook like button layout.

http://downloads.wordpress.org/plugin/facebook-like.zip

Facebook like on WP Plugin

Posted April 25th, 2010 in Blog by admin

Yay… today… I got approve from wordpress. Now, you can install from wordpress plugins website.

http://wordpress.org/extend/plugins/facebook-like/