| @@ -74,17 +74,8 @@ | ||
| 74 | 74 | 'tptn_popular_posts', |
| 75 | 75 | array( $this, 'render_page' ) |
| 76 | 76 | ); |
| 77 | 77 | |
| 78 | - add_submenu_page( | |
| 79 | - 'tptn_dashboard', | |
| 80 | - __( 'Top 10 Daily Popular Posts', 'top-10' ), | |
| 81 | - __( 'Daily Popular Posts', 'top-10' ), | |
| 82 | - 'manage_options', | |
| 83 | - 'tptn_popular_posts&orderby=daily_count&order=desc', | |
| 84 | - array( $this, 'render_page' ) | |
| 85 | - ); | |
| 86 | - | |
| 87 | 78 | add_action( "load-{$this->parent_id}", array( $this, 'screen_option' ) ); |
| 88 | 79 | } |
| 89 | 80 | |
| 90 | 81 | /** |
| @@ -110,9 +101,12 @@ | ||
| 110 | 101 | } |
| 111 | 102 | ?> |
| 112 | 103 | <div class="wrap"> |
| 113 | 104 | <h1><?php esc_html_e( 'Top 10 Popular Posts', 'top-10' ); ?></h1> |
| 114 | - <?php do_action( 'tptn_settings_page_header' ); ?> | |
| 105 | + <?php | |
| 106 | + /** This action is documented in includes/admin/class-dashboard.php */ | |
| 107 | + do_action( 'tptn_settings_page_header' ); | |
| 108 | + ?> | |
| 115 | 109 | |
| 116 | 110 | <div id="poststuff"> |
| 117 | 111 | <div id="post-body" class="metabox-holder columns-2"> |
| 118 | 112 | <div id="post-body-content"> |