File Editor
Directories:
.. (Back)
actions
analytics
builders
commands
conditionals
config
content-type-visibility
context
deprecated
editors
elementor
exceptions
general
generated
generators
helpers
images
initializers
integrations
introductions
loggers
memoizers
models
presentations
presenters
promotions
repositories
routes
services
surfaces
user-meta
user-profiles-additions
values
wordpress
wrappers
Files:
functions.php
loadable-interface.php
loader.php
main.php
Create New File
Create
Edit File: functions.php
<?php /** * WPSEO plugin file. * * @package WPSEO\Internals */ if ( ! defined( 'WPSEO_VERSION' ) ) { header( 'Status: 403 Forbidden' ); header( 'HTTP/1.1 403 Forbidden' ); exit(); } use Yoast\WP\SEO\Main; if ( is_dir( WPSEO_PATH . YOAST_VENDOR_PREFIX_DIRECTORY ) ) { require_once WPSEO_PATH . YOAST_VENDOR_PREFIX_DIRECTORY . '/guzzlehttp/guzzle/src/functions.php'; } /** * Retrieves the main instance. * * @phpcs:disable WordPress.NamingConventions -- Should probably be renamed, but leave for now. * * @return Main The main instance. */ function YoastSEO() { // phpcs:enable static $main; if ( $main === null ) { $main = new Main(); $main->load(); } return $main; }
Save Changes
Rename File
Rename