Files
wingedit.pl/wp-content/plugins/polylang/integrations/custom-field-template/load.php
2024-11-04 20:48:19 +01:00

22 lines
371 B
PHP

<?php
/**
* Loads the integration with Custom Field Template.
*
* @package Polylang
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Don't access directly.
};
add_action(
'plugins_loaded',
function() {
if ( class_exists( 'custom_field_template' ) ) {
PLL_Integrations::instance()->cft = new PLL_Cft();
PLL_Integrations::instance()->cft->init();
}
},
0
);