/** * Inits page with user-defined title * * @param string $title Page title */ public function __construct($title) { $this->pageTitle = $title; $this->menuTitle = $title; $this->id = sanitize_title($title); $this->successMessage = __('Settings saved.'); $this->submitText = __('Save Changes'); parent::__construct(); }
/** * Inits the field collection * * @param string $title For what taxonomy? */ public function __construct($taxonomy) { $this->taxonomy = $taxonomy; parent::__construct(); }
/** * Inits meta box title, id and data handler * * @param string $title Meta box title */ public function __construct($title) { $this->title = $title; $this->id = sanitize_title($title); parent::__construct(); }