* Get things started. * * @param boolean $slug */
( $slug = false )
| 91 | * @param boolean $slug |
| 92 | */ |
| 93 | public function __construct( $slug = false ) { |
| 94 | |
| 95 | if ( ! $slug ) { |
| 96 | return; |
| 97 | } |
| 98 | |
| 99 | $this->slug = $slug; |
| 100 | $this->func = str_replace( '-', '_', $slug ); |
| 101 | $this->labels = $this->get_labels(); |
| 102 | $GLOBALS[ $this->func . '_options' ] = get_option( $this->func . '_settings', true ); |
| 103 | |
| 104 | $this->hooks(); |
| 105 | |
| 106 | } |
| 107 | |
| 108 | /** |
| 109 | * Set the title for the page. |
nothing calls this directly
no test coverage detected