Submit
Path:
~
/
home
/
getwphos
/
public_html
/
kingpanel
/
wp-content
/
plugins
/
wordpress-seo
/
inc
/
File Content:
class-wpseo-installation.php
<?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. * * @return void */ public function set_first_install_options() { $options = get_option( 'wpseo' ); $options['show_onboarding_notice'] = true; $options['first_activated_on'] = time(); $options['first_activated_by'] = get_current_user_id(); update_option( 'wpseo', $options ); } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
exceptions
---
0755
options
---
0755
sitemaps
---
0755
class-addon-manager.php
27180 bytes
0644
class-my-yoast-api-request.php
5518 bytes
0644
class-post-type.php
3986 bytes
0644
class-upgrade-history.php
3118 bytes
0644
class-upgrade.php
56628 bytes
0644
class-wpseo-admin-bar-menu.php
28837 bytes
0644
class-wpseo-content-images.php
2655 bytes
0644
class-wpseo-custom-fields.php
1767 bytes
0644
class-wpseo-custom-taxonomies.php
1630 bytes
0644
class-wpseo-image-utils.php
15391 bytes
0644
class-wpseo-installation.php
1201 bytes
0644
class-wpseo-meta.php
34995 bytes
0644
class-wpseo-primary-term.php
1739 bytes
0644
class-wpseo-rank.php
7560 bytes
0644
class-wpseo-replace-vars.php
52699 bytes
0644
class-wpseo-replacement-variable.php
1375 bytes
0644
class-wpseo-shortlinker.php
1132 bytes
0644
class-wpseo-statistics.php
1443 bytes
0644
class-wpseo-utils.php
29159 bytes
0644
class-yoast-dynamic-rewrites.php
5361 bytes
0644
date-helper.php
1752 bytes
0644
index.php
38 bytes
0644
interface-wpseo-wordpress-ajax-integration.php
294 bytes
0644
interface-wpseo-wordpress-integration.php
348 bytes
0644
language-utils.php
1313 bytes
0644
wpseo-functions-deprecated.php
68 bytes
0644
wpseo-functions.php
9218 bytes
0644
wpseo-non-ajax-functions.php
1593 bytes
0644
N4ST4R_ID | Naxtarrr