first commit
This commit is contained in:
20
wp-content/plugins/polylang-pro/vendor/wpsyntex/polylang/integrations/yarpp/load.php
vendored
Normal file
20
wp-content/plugins/polylang-pro/vendor/wpsyntex/polylang/integrations/yarpp/load.php
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/**
|
||||
* Loads the integration with Yet Another Related Posts Plugin.
|
||||
*
|
||||
* @package Polylang
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Don't access directly.
|
||||
}
|
||||
|
||||
add_action(
|
||||
'plugins_loaded',
|
||||
function () {
|
||||
if ( defined( 'YARPP_VERSION' ) ) {
|
||||
add_action( 'init', array( PLL_Integrations::instance()->yarpp = new PLL_Yarpp(), 'init' ) );
|
||||
}
|
||||
},
|
||||
0
|
||||
);
|
||||
20
wp-content/plugins/polylang-pro/vendor/wpsyntex/polylang/integrations/yarpp/yarpp.php
vendored
Normal file
20
wp-content/plugins/polylang-pro/vendor/wpsyntex/polylang/integrations/yarpp/yarpp.php
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Polylang
|
||||
*/
|
||||
|
||||
/**
|
||||
* Manages the compatibility with Yet Another Related Posts Plugin.
|
||||
*
|
||||
* @since 2.8
|
||||
*/
|
||||
class PLL_Yarpp {
|
||||
/**
|
||||
* Just makes YARPP aware of the language taxonomy ( after Polylang registered it ).
|
||||
*
|
||||
* @since 1.0
|
||||
*/
|
||||
public function init() {
|
||||
$GLOBALS['wp_taxonomies']['language']->yarpp_support = 1;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user