Hi,
I create simple admin page plugin
as per piklist guideline and keep all folders as per structure
and use the following code:
ERROR:
The plugin generated 1 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.
add_action(‘init’, ‘my_init_function’);
function my_init_function()
{
if(is_admin())
{
include_once(‘includes/class-piklist-checker.php’);
if (!piklist_checker::check(__FILE__))
{
return;
}
add_filter(‘piklist_admin_pages’, ‘sms’);
}
}
//create menu
function sms($pages)
{
$pages[] = array(
‘page_title’ => __(‘SMS’)
,’menu_title’ => __(‘SMS’)
,’capability’ => ‘manage_options’ // allow users with the capability of read to VIEW this page.
,’menu_slug’ => ‘sms’
,’setting’ => ‘sms’
,’menu_icon’ => plugins_url(‘sms/parts/img/mobile-sms-icon-1.png’)
,’page_icon’ => plugins_url(‘sms/parts/img/mobile-sms-icon.png’)
,’save_text’ => false
,’position’ => ’10’
);
return $pages;
}