Exemplo n.º 1
0
function wpml_plugins_integration_setup()
{
    global $sitepress, $wpml_url_converter, $authordata;
    // WPSEO integration
    if (defined('WPSEO_VERSION') && version_compare(WPSEO_VERSION, '1.0.3', '>=')) {
        new WPML_WPSEO_XML_Sitemaps_Filter($sitepress, $wpml_url_converter);
        $wpseo_filters = new WPML_WPSEO_Filters($sitepress, $authordata);
        $wpseo_filters->init_hooks();
    }
    // NextGen Gallery
    if (defined('NEXTGEN_GALLERY_PLUGIN_VERSION')) {
        require_once ICL_PLUGIN_PATH . '/inc/plugin-integration-nextgen.php';
    }
}
Exemplo n.º 2
0
function wpml_plugins_integration_setup()
{
    /** @var WPML_URL_Converter $wpml_url_converter */
    global $sitepress, $wpml_url_converter, $authordata;
    // WPSEO integration
    if (defined('WPSEO_VERSION') && version_compare(WPSEO_VERSION, '1.0.3', '>=')) {
        new WPML_WPSEO_XML_Sitemaps_Filter($sitepress, $wpml_url_converter);
        $wpseo_filters = new WPML_WPSEO_Filters($sitepress, $authordata);
        $wpseo_filters->init_hooks();
    }
    if (class_exists('bbPress')) {
        $wpml_bbpress_api = new WPML_BBPress_API();
        $wpml_bbpress_filters = new WPML_BBPress_Filters($wpml_bbpress_api, $sitepress, $wpml_url_converter);
        $wpml_bbpress_filters->add_hooks();
    }
    // NextGen Gallery
    if (defined('NEXTGEN_GALLERY_PLUGIN_VERSION')) {
        require_once ICL_PLUGIN_PATH . '/inc/plugin-integration-nextgen.php';
    }
}