wordpress/wp-content/themes/basic/themify/themify-builder/classes/class-themify-builder-layouts.php
/**
		 * Duplicate Post in Admin Edit page.
		 *
		 * @access public
		 */
Duplicate Post in Admin Edit page.
@access public
Duplicate Post in Admin Edit page . @access public
public function duplicate_action() {
			if ( isset( $_GET['action'] ) && 'duplicate_tbuilder' === $_GET['action'] && wp_verify_nonce( $_GET['_wpnonce'], 'duplicate_themify_builder' ) ) {
				$postid = (int)$_GET['post'];
				$layout = get_post( $postid );
				if(null === $layout){
				    exit;
                }
				$new_id = ThemifyBuilderDuplicatePage::duplicate( $layout );
				delete_post_meta( $new_id, '_themify_builder_prebuilt_layout' );
				wp_redirect( admin_url( 'edit.php?post_type=' . get_post_type( $postid ) ) );
				exit;
			}
		}
public function duplicate_action ( ) { if ( isset ( $ _GET [ 'action' ] ) && 'duplicate_tbuilder' === $ _GET [ 'action' ] && wp_verify_nonce ( $ _GET [ '_wpnonce' ] , 'duplicate_themify_builder' ) ) { $ postid = ( int ) $ _GET [ 'post' ] ; $ layout = get_post ( $ postid ) ; if ( null === $ layout ) { exit ; } $ new_id = ThemifyBuilderDuplicatePage :: duplicate ( $ layout ) ; delete_post_meta ( $ new_id , '_themify_builder_prebuilt_layout' ) ; wp_redirect ( admin_url ( 'edit.php?post_type=' . get_post_type ( $ postid ) ) ) ; exit ; } }
Duplicate Post in Admin Edit page.
Duplicate Post in Admin Edit page .