page_slug = 'statistics'; $this->title = __( 'Statistics', 'socialsnap' ); // Actions add_action( 'admin_menu', array( $this, 'register_pages' ), 11 ); } /** * Register the pages to be used for the Settings screen. * * @since 1.0.0 */ public function register_pages() { // Add 'Addons' submenu page add_submenu_page( 'socialsnap-settings', __( 'Social Snap Statistics', 'socialsnap' ), __( 'Statistics', 'socialsnap' ), apply_filters( 'socialsnap_statistics_cap', 'manage_options' ), 'socialsnap-statistics', array( $this, 'render' ) ); } /** * Build the output for the plugin addons page. * * @since 1.0.0 */ public function render() { ?>