Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
home
/
ophq1335
/
www
/
wp-content
/
plugins
/
wp-seopress
/
src
/
Services
/
Options
/
/home/ophq1335/www/wp-content/plugins/wp-seopress/src/Services/Options/DashboardOption.php
<?php // phpcs:ignore namespace SEOPress\Services\Options; if ( ! defined( 'ABSPATH' ) ) { exit; } use SEOPress\Constants\Options; /** * DashboardOption */ class DashboardOption { /** * The getOption function. * * @since 6.6.0 * * @return array */ public function getOption() { // phpcs:ignore -- TODO: check if method is outside this class before renaming. return get_option( Options::KEY_OPTION_DASHBOARD ); } /** * The searchOptionByKey function. * * @since 6.6.0 * * @param string $key The key. * * @return mixed */ public function searchOptionByKey( $key ) { // phpcs:ignore -- TODO: check if method is outside this class before renaming. $data = $this->getOption(); if ( empty( $data ) ) { return null; } if ( ! isset( $data[ $key ] ) ) { return null; } return $data[ $key ]; } }