dismissed_items = new Dismissed_Items( $user_options ?: new User_Options( $context ) ); $this->rest_controller = new REST_Dismissals_Controller( $this->dismissed_items ); } /** * Gets the reference to the Dismissed_Items instance. * * @since 1.69.0 * * @return Dismissed_Items An instance of the Dismissed_Items class. */ public function get_dismissed_items() { return $this->dismissed_items; } /** * Registers functionality through WordPress hooks. * * @since 1.37.0 */ public function register() { $this->dismissed_items->register(); $this->rest_controller->register(); } }