| Server IP : 3.111.61.48 / Your IP : 216.73.216.67 Web Server : Apache System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.2.31 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/vhost/cosmicindrani.com/wp-content/plugins/post-duplicator/includes/ |
Upload File : |
<?php
/* --------------------------------------------------------- */
/* !Return an array of post types - 2.27 */
/* --------------------------------------------------------- */
if( !function_exists('mtphr_post_duplicator_post_types') ) {
function mtphr_post_duplicator_post_types() {
$post_types = array('same' => __('Same as original', 'post-duplicator'));
$pts = get_post_types(array(), 'objects');
// Remove framework post types
unset( $pts['attachment'] );
unset( $pts['revision'] );
unset( $pts['nav_menu_item'] );
unset( $pts['wooframework'] );
if( is_array($pts) && count($pts) > 0 ) {
foreach( $pts as $i=>$pt ) {
$post_types[$i] = sanitize_text_field( $pt->labels->singular_name );
}
}
return $post_types;
}
}