';
}
?>
'wccp_free_top_button',
'parent' => null,
'group' => null,
'title' => '' . __('Protection', 'wp-content-copy-protector'),
'href' => admin_url('admin.php?page=wccpoptionspro'),
'meta' => array('title' => __('Copy Protection & No right click', 'wp-content-copy-protector'),//This title will show on hover
'class' => '')
);
//This is where the magic works.
$admin_bar->add_menu( $args);
}
//------------------------------------------------------------------------
function wccp_options_page_pro() {
include 'admin-core.php';
}
//------------------------------------------------------------------------
//Make our function to call the WordPress function to add to the correct menu.
function wccp_add_options() {
//add_options_page(__('WP Content Copy Protection', 'wp-content-copy-protector'), __('WP Content Copy Protection', 'wp-content-copy-protector'), 'manage_options', 'wccpoptionspro', 'wccp_options_page_pro');
add_menu_page
(
'WP Content Copy Protection', // use null for parent slug to hide it from admin menu
'Copy Protection', // page title
'manage_options', // capability
'wccpoptionspro', // slug
'wccp_options_page_pro', // callback
'dashicons-lock',
6
);
}
//First use the add_action to add onto the WordPress menu.
add_action('admin_menu', 'wccp_add_options');
?>