ldc-groupe/content/plugins/wp-seo-multilingual/classes/class-wpml-wpseo-main-factory.php
Vincent BRIDIER 134507db43 - Backup DEV
- Add DotEnv
- Fix Bato
- Etc..
2020-05-04 15:59:02 +02:00

22 lines
937 B
PHP

<?php
class WPML_WPSEO_Main_Factory implements IWPML_Backend_Action_Loader, IWPML_Frontend_Action_Loader, IWPML_Ajax_Action_Loader {
/**
* Instantiate required classes.
*/
public function create() {
global $sitepress, $wpml_url_converter, $pagenow;
$canonicals = new WPML_Canonicals( $sitepress, new WPML_Translation_Element_Factory( $sitepress ) );
$hooks = array();
$hooks['xml-sitemap'] = new WPML_WPSEO_XML_Sitemaps_Filter( $sitepress, $wpml_url_converter, new WPSEO_Sitemap_Image_Parser() );
$hooks['filters'] = new WPML_WPSEO_Filters( $canonicals );
$hooks['metabox'] = new WPML_WPSEO_Metabox_Hooks( new WPML_Debug_BackTrace( phpversion() ), $wpml_url_converter, $pagenow );
$hooks['categories'] = new WPML_WPSEO_Categories();
$hooks['should-create-redirect'] = new WPML_WPSEO_Should_Create_Redirect();
return $hooks;
}
}