HEX
Server: Apache
System: Linux v2532718.hostpapavps.net 5.14.0-570.37.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Aug 26 10:33:12 EDT 2025 x86_64
User: emiin2 (1016)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/emiin2/public_html/wp-content/plugins/post-duplicator/includes/hooks.php
<?php

// function testingssss() {
// 	$original_id = get_the_id();
// 	$post_type = 'page';
// 	$taxonomies = get_object_taxonomies( $post_type );
// 	foreach( $taxonomies as $taxonomy ) {
// 		$terms = wp_get_post_terms( $original_id, $taxonomy, array('fields' => 'names') );
// 		$object_terms = wp_get_object_terms( $original_id, $taxonomy );
// 	//	wp_set_object_terms( $duplicate_id, $terms, $taxonomy );
// 	}
// }
// add_action( 'wp', 'testingssss' );