MCPcopy Create free account
hub / github.com/WPUserManager/wp-optionskit / __construct

Method __construct

wp-optionskit.php:93–106  ·  view source on GitHub ↗

* Get things started. * * @param boolean $slug */

( $slug = false )

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 2

get_labelsMethod · 0.95
hooksMethod · 0.95

Tested by

no test coverage detected