dismissed_prompts = new Dismissed_Prompts( $user_options ?: new User_Options( $context ) ); $this->rest_controller = new REST_Prompts_Controller( $this->dismissed_prompts ); } /** * Gets the reference to the Dismissed_Prompts instance. * * @since 1.121.0 * * @return Dismissed_Prompts An instance of the Dismissed_Prompts class. */ public function get_dismissed_prompts() { return $this->dismissed_prompts; } /** * Registers functionality through WordPress hooks. * * @since 1.121.0 */ public function register() { $this->dismissed_prompts->register(); $this->rest_controller->register(); } }