PATH:
home
/
fengshp
/
www
/
wp-content
/
themes
/
themify-ultra
/
themify
/
themify-builder
/
includes
/
plugin-compat
<?php /** * Builder Plugin Compatibility Code * * @package Themify_Builder * @subpackage Themify_Builder/classes */ class Themify_Builder_Plugin_Compat_DuplicatePosts { static function init() { add_filter( 'option_duplicate_post_blacklist', array( __CLASS__, 'dp_meta_backlist'), 10, 2 ); add_action('dp_duplicate_post', array( __CLASS__, 'dp_duplicate_builder_data'), 10, 2); add_action('dp_duplicate_page', array( __CLASS__, 'dp_duplicate_builder_data'), 10, 2); } /** * Backlist builder meta_key from duplicate post settings custom fields */ public static function dp_meta_backlist(string $value,string $option ):string { $list_arr = explode(',', $value ); $list_arr[] = '_themify_builder_settings_json'; return implode( ',', $list_arr ); } /** * Action to duplicate builder data. * * @access public * @param int $new_id * @param object $post */ public static function dp_duplicate_builder_data( $new_id, $post ) { $builder_data = ThemifyBuilder_Data_Manager::get_data( $post->ID ); // get builder data from original post ThemifyBuilder_Data_Manager::save_data( $builder_data, $new_id ); // save the data for the new post } }
[+]
..
[-] eventsmadeeasy.php
[edit]
[-] relatedposts.php
[edit]
[-] statcounter.php
[edit]
[-] polylang2.php
[edit]
[-] pmpro.php
[edit]
[-] enviragallery.php
[edit]
[+]
css
[-] autooptimize.php
[edit]
[-] members.php
[edit]
[-] gallerycustomlinks.php
[edit]
[-] kadence.php
[edit]
[-] armember.php
[edit]
[-] smartcookie.php
[edit]
[-] wcmembership.php
[edit]
[-] woocommerce.php
[edit]
[+]
js
[-] maxgalleriamedialibpro.php
[edit]
[-] bwpminify.php
[edit]
[-] essentialgrid.php
[edit]
[-] wpml.php
[edit]
[-] facetwp.php
[edit]
[-] cachepress.php
[edit]
[-] eventscalendar.php
[edit]
[-] wpjobmanager.php
[edit]
[-] rankmath.php
[edit]
[-] duplicateposts.php
[edit]
[-] wpml-translation.php
[edit]
[-] dokan.php
[edit]
[-] tutor.php
[edit]
[-] thrive.php
[edit]
[-] eventtickets.php
[edit]
[-] wpcourseware.php
[edit]