????JFIF??x?x????'
| Server IP : 172.67.174.47 / Your IP : 216.73.216.87 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /././././proc/self/cwd/wp-content/plugins/wordpress-seo/src/helpers/ |
Upload File : |
<?php
namespace Yoast\WP\SEO\Helpers;
use wpdb;
/**
* The AIOSEO Helper.
*/
class Aioseo_Helper {
/**
* The WordPress database instance.
*
* @var wpdb
*/
protected $wpdb;
/**
* The wpdb helper.
*
* @var Wpdb_Helper
*/
protected $wpdb_helper;
/**
* Class constructor.
*
* @param wpdb $wpdb The WordPress database instance.
* @param Wpdb_Helper $wpdb_helper The wpdb helper.
*/
public function __construct( wpdb $wpdb, Wpdb_Helper $wpdb_helper ) {
$this->wpdb = $wpdb;
$this->wpdb_helper = $wpdb_helper;
}
/**
* Retrieves the AIOSEO table name along with the db prefix.
*
* @return string The AIOSEO table name along with the db prefix.
*/
public function get_table() {
return $this->wpdb->prefix . 'aioseo_posts';
}
/**
* Determines if the AIOSEO database table exists.
*
* @return bool True if the table is found.
*/
public function aioseo_exists() {
return $this->wpdb_helper->table_exists( $this->get_table() ) === true;
}
/**
* Retrieves the option where the global settings exist.
*
* @return array The option where the global settings exist.
*/
public function get_global_option() {
return \json_decode( \get_option( 'aioseo_options', '' ), true );
}
}