aioseop_init_class

The All In One SEO Pack aioseop init class function.

Description

aioseop_init_class(); 

Usage

  1. if ( !function_exists( 'aioseop_init_class' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'all-in-one-seo-pack/all_in_one_seo_pack.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = aioseop_init_class(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/all_in_one_seo_pack.php  
  1. function aioseop_init_class() { 
  2. global $aiosp; 
  3. load_plugin_textdomain( 'all-in-one-seo-pack', false, dirname( plugin_basename( __FILE__ ) ) . '/i18n/' ); 
  4. require_once( AIOSEOP_PLUGIN_DIR . 'inc/aioseop_functions.php' ); 
  5. require_once( AIOSEOP_PLUGIN_DIR . 'aioseop_class.php' ); 
  6. require_once( AIOSEOP_PLUGIN_DIR . 'inc/aioseop_updates_class.php' ); 
  7. require_once( AIOSEOP_PLUGIN_DIR . 'inc/commonstrings.php' ); 
  8. require_once( AIOSEOP_PLUGIN_DIR . 'admin/display/postedit.php' ); 
  9. require_once( AIOSEOP_PLUGIN_DIR . 'admin/display/general-metaboxes.php' ); 
  10. require_once( AIOSEOP_PLUGIN_DIR . 'inc/aiosp_common.php' ); 
  11. require_once( AIOSEOP_PLUGIN_DIR . 'admin/meta_import.php' ); 
  12. require_once( AIOSEOP_PLUGIN_DIR . 'inc/translations.php' ); 
  13. require_once( AIOSEOP_PLUGIN_DIR . 'public/opengraph.php' ); 
  14. require_once( AIOSEOP_PLUGIN_DIR . 'inc/compatability/compat-init.php'); 
  15. require_once( AIOSEOP_PLUGIN_DIR . 'public/front.php' ); 
  16. require_once( AIOSEOP_PLUGIN_DIR . 'public/google-analytics.php' ); 
  17. require_once( AIOSEOP_PLUGIN_DIR . 'admin/display/welcome.php' ); 
  18.  
  19. $aioseop_welcome = new aioseop_welcome(); // TODO move this to updates file. 
  20.  
  21. if ( AIOSEOPPRO ) { 
  22. require_once( AIOSEOP_PLUGIN_DIR . 'pro/class-aio-pro-init.php' ); // Loads pro files and other pro init stuff. 
  23. aiosp_seometa_import(); // call importer functions... this should be moved somewhere better 
  24.  
  25. $aiosp = new All_in_One_SEO_Pack(); 
  26.  
  27. $aioseop_updates = new AIOSEOP_Updates(); 
  28.  
  29. if ( AIOSEOPPRO ) { 
  30. $aioseop_pro_updates = new AIOSEOP_Pro_Updates(); 
  31. add_action( 'admin_init', array( $aioseop_pro_updates, 'version_updates' ), 12 ); 
  32.  
  33. add_action( 'admin_init', 'aioseop_welcome' ); 
  34.  
  35. if ( aioseop_option_isset( 'aiosp_unprotect_meta' ) ) { 
  36. add_filter( 'is_protected_meta', 'aioseop_unprotect_meta', 10, 3 ); 
  37.  
  38. add_action( 'init', array( $aiosp, 'add_hooks' ) ); 
  39. add_action( 'admin_init', array( $aioseop_updates, 'version_updates' ), 11 ); 
  40.  
  41. if ( defined( 'DOING_AJAX' ) && ! empty( $_POST ) && ! empty( $_POST['action'] ) && 'aioseop_ajax_scan_header' === $_POST['action'] ) { 
  42. remove_action( 'init', array( $aiosp, 'add_hooks' ) ); 
  43. add_action( 'shutdown', 'aioseop_ajax_scan_header' ); // if the action doesn't run -- pdb 
  44. include_once( ABSPATH . 'wp-admin/includes/screen.php' ); 
  45. global $current_screen; 
  46. if ( class_exists( 'WP_Screen' ) ) { 
  47. $current_screen = WP_Screen::get( 'front' );