aioseop_init_class
The All In One SEO Pack aioseop init class function.
Description
aioseop_init_class();
Usage
if ( !function_exists( 'aioseop_init_class' ) ) { require_once ABSPATH . PLUGINDIR . 'all-in-one-seo-pack/all_in_one_seo_pack.php'; } // NOTICE! Understand what this does before running. $result = aioseop_init_class();
Defined (1)
The function is defined in the following location(s).
- /all_in_one_seo_pack.php
- function aioseop_init_class() {
- global $aiosp;
- load_plugin_textdomain( 'all-in-one-seo-pack', false, dirname( plugin_basename( __FILE__ ) ) . '/i18n/' );
- require_once( AIOSEOP_PLUGIN_DIR . 'inc/aioseop_functions.php' );
- require_once( AIOSEOP_PLUGIN_DIR . 'aioseop_class.php' );
- require_once( AIOSEOP_PLUGIN_DIR . 'inc/aioseop_updates_class.php' );
- require_once( AIOSEOP_PLUGIN_DIR . 'inc/commonstrings.php' );
- require_once( AIOSEOP_PLUGIN_DIR . 'admin/display/postedit.php' );
- require_once( AIOSEOP_PLUGIN_DIR . 'admin/display/general-metaboxes.php' );
- require_once( AIOSEOP_PLUGIN_DIR . 'inc/aiosp_common.php' );
- require_once( AIOSEOP_PLUGIN_DIR . 'admin/meta_import.php' );
- require_once( AIOSEOP_PLUGIN_DIR . 'inc/translations.php' );
- require_once( AIOSEOP_PLUGIN_DIR . 'public/opengraph.php' );
- require_once( AIOSEOP_PLUGIN_DIR . 'inc/compatability/compat-init.php');
- require_once( AIOSEOP_PLUGIN_DIR . 'public/front.php' );
- require_once( AIOSEOP_PLUGIN_DIR . 'public/google-analytics.php' );
- require_once( AIOSEOP_PLUGIN_DIR . 'admin/display/welcome.php' );
- $aioseop_welcome = new aioseop_welcome(); // TODO move this to updates file.
- if ( AIOSEOPPRO ) {
- require_once( AIOSEOP_PLUGIN_DIR . 'pro/class-aio-pro-init.php' ); // Loads pro files and other pro init stuff.
- }
- aiosp_seometa_import(); // call importer functions... this should be moved somewhere better
- $aiosp = new All_in_One_SEO_Pack();
- $aioseop_updates = new AIOSEOP_Updates();
- if ( AIOSEOPPRO ) {
- $aioseop_pro_updates = new AIOSEOP_Pro_Updates();
- add_action( 'admin_init', array( $aioseop_pro_updates, 'version_updates' ), 12 );
- }
- add_action( 'admin_init', 'aioseop_welcome' );
- if ( aioseop_option_isset( 'aiosp_unprotect_meta' ) ) {
- add_filter( 'is_protected_meta', 'aioseop_unprotect_meta', 10, 3 );
- }
- add_action( 'init', array( $aiosp, 'add_hooks' ) );
- add_action( 'admin_init', array( $aioseop_updates, 'version_updates' ), 11 );
- if ( defined( 'DOING_AJAX' ) && ! empty( $_POST ) && ! empty( $_POST['action'] ) && 'aioseop_ajax_scan_header' === $_POST['action'] ) {
- remove_action( 'init', array( $aiosp, 'add_hooks' ) );
- add_action( 'admin_init', 'aioseop_scan_post_header' );
- add_action( 'shutdown', 'aioseop_ajax_scan_header' ); // if the action doesn't run -- pdb
- include_once( ABSPATH . 'wp-admin/includes/screen.php' );
- global $current_screen;
- if ( class_exists( 'WP_Screen' ) ) {
- $current_screen = WP_Screen::get( 'front' );
- }
- }
- }