PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
wordpress-seo
/
inc
<?php /** * WPSEO plugin file. * * @package WPSEO\Internals * @since 3.6 */ /** * This class checks if the wpseo option doesn't exists. In the case it doesn't it will set a property that is * accessible via a method to check if the installation is fresh. */ class WPSEO_Installation { /** * Checks if Yoast SEO is installed for the first time. */ public function __construct() { $is_first_install = $this->is_first_install(); if ( $is_first_install && WPSEO_Utils::is_api_available() ) { add_action( 'wpseo_activate', [ $this, 'set_first_install_options' ] ); } } /** * When the option doesn't exist, it should be a new install. * * @return bool */ private function is_first_install() { return ( get_option( 'wpseo' ) === false ); } /** * Sets the options on first install for showing the installation notice and disabling of the settings pages. */ public function set_first_install_options() { $options = get_option( 'wpseo' ); $options['show_onboarding_notice'] = true; $options['first_activated_on'] = time(); update_option( 'wpseo', $options ); } }
[-] class-wpseo-content-images.php
[edit]
[-] wpseo-functions.php
[edit]
[-] date-helper.php
[edit]
[-] class-addon-manager.php
[edit]
[-] class-wpseo-statistics.php
[edit]
[-] class-post-type.php
[edit]
[-] class-wpseo-meta.php
[edit]
[-] class-wpseo-utils.php
[edit]
[-] index.php
[edit]
[-] class-wpseo-admin-bar-menu.php
[edit]
[-] class-wpseo-custom-fields.php
[edit]
[-] class-wpseo-shortlinker.php
[edit]
[-] class-upgrade-history.php
[edit]
[-] class-my-yoast-api-request.php
[edit]
[-] class-wpseo-replacement-variable.php
[edit]
[-] class-wpseo-installation.php
[edit]
[+]
options
[-] wpseo-non-ajax-functions.php
[edit]
[-] class-wpseo-features.php
[edit]
[-] class-wpseo-primary-term.php
[edit]
[-] interface-wpseo-wordpress-integration.php
[edit]
[-] wpseo-functions-deprecated.php
[edit]
[-] class-rewrite.php
[edit]
[-] class-wpseo-rank.php
[edit]
[-] class-upgrade.php
[edit]
[+]
..
[-] class-wpseo-replace-vars.php
[edit]
[-] class-wpseo-custom-taxonomies.php
[edit]
[+]
exceptions
[-] language-utils.php
[edit]
[-] class-wpseo-image-utils.php
[edit]
[+]
sitemaps
[-] interface-wpseo-wordpress-ajax-integration.php
[edit]