first commit

This commit is contained in:
2025-02-24 22:33:42 +01:00
commit 737c037e85
18358 changed files with 5392983 additions and 0 deletions

View 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
);

View 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;
}
}