| 1 | <?php |
||
| 24 | class Auto_Load_Next_Post_Settings_Page { |
||
|
|
|||
| 25 | |||
| 26 | protected $id = ''; |
||
| 27 | protected $label = ''; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Add this page to settings. |
||
| 31 | * |
||
| 32 | * @since 1.0.0 |
||
| 33 | * @access public |
||
| 34 | * @param array $pages |
||
| 35 | * @return array $pages |
||
| 36 | */ |
||
| 37 | public function add_settings_page($pages) { |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Add this settings page to plugin menu. |
||
| 44 | * |
||
| 45 | * @since 1.0.0 |
||
| 46 | * @access public |
||
| 47 | * @param array $pages |
||
| 48 | * @return array $pages |
||
| 49 | */ |
||
| 50 | public function add_menu_page($pages) { |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Get settings array |
||
| 57 | * |
||
| 58 | * @since 1.0.0 |
||
| 59 | * @access public |
||
| 60 | * @return array |
||
| 61 | */ |
||
| 62 | public function get_settings() { |
||
| 65 | |||
| 66 | /** |
||
| 67 | * Output the settings. |
||
| 68 | * |
||
| 69 | * @since 1.0.0 |
||
| 70 | * @access public |
||
| 71 | */ |
||
| 72 | public function output() { |
||
| 77 | |||
| 78 | /** |
||
| 79 | * Save settings. |
||
| 80 | * |
||
| 81 | * @since 1.0.0 |
||
| 82 | * @access public |
||
| 83 | * @global $current_tab |
||
| 84 | * @global $current_section |
||
| 85 | */ |
||
| 86 | public function save() { |
||
| 93 | |||
| 94 | } // END class |
||
| 95 | |||
| 97 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.