optionName, $dismissedValue ); } /** * Returns the value of the whip_dismissed option. * * @return int Returns the value of the option or an empty string when not set. */ public function get() { $dismissedOption = get_option( $this->optionName ); if ( ! $dismissedOption ) { return 0; } return (int) $dismissedOption; } }