PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
plugins
/
wp-all-export-pro
/
helpers
<?php function wp_all_export_get_cpt_name($cpt = array(), $count = 2, $post = array()) { $cptName = ''; if ( ! empty($cpt)) { if (in_array('users', $cpt)) { $cptName = ($count > 1) ? __('Users', 'wp_all_export_plugin') : __('User', 'wp_all_export_plugin'); } elseif (in_array('shop_customer', $cpt)) { $cptName = ($count > 1) ? __('Customers', 'wp_all_export_plugin') : __('Customer', 'wp_all_export_plugin'); } elseif (in_array('comments', $cpt)) { $cptName = ($count > 1) ? __('Comments', 'wp_all_export_plugin') : __('Comment', 'wp_all_export_plugin'); } elseif (in_array('shop_review', $cpt)) { $cptName = ($count > 1) ? __('Reviews', 'wp_all_export_plugin') : __('Review', 'wp_all_export_plugin'); } elseif (in_array('taxonomies', $cpt)) { if (!empty($post['taxonomy_to_export'])){ $tx = get_taxonomy( $post['taxonomy_to_export'] ); $cptName = ($count > 1) ? $tx->labels->name : $tx->labels->singular_name; } else{ $cptName = ($count > 1) ? __('Taxonomy Terms', 'wp_all_export_plugin') : __('Taxonomy Term', 'wp_all_export_plugin'); } } elseif (in_array('custom_wpae-gf-addon', $cpt)) { $cptName = ($count > 1) ? __('Entries', 'wp_all_export_plugin') : __('Entry', 'wp_all_export_plugin'); } else { if (count($cpt) === 1 and in_array('product_variation', $cpt) and class_exists('WooCommerce')){ $cptName = ($count > 1) ? 'Variations' : 'Variation'; } else { $post_type_details = get_post_type_object( $cpt[0] ); if ($post_type_details) { $cptName = ($count > 1) ? $post_type_details->labels->name : $post_type_details->labels->singular_name; } } } } if (empty($cptName)) { $cptName = ($count > 1) ? __('Records', 'wp_all_export_plugin') : __('Record', 'wp_all_export_plugin'); } return $cptName; }
[-] wp_all_export_check_children_assign.php
[edit]
[-] wp_all_export_url_title.php
[edit]
[-] wp_all_export_rmdir.php
[edit]
[-] wp_all_export_generate_export_file.php
[edit]
[-] wp_all_export_clear_xss.php
[edit]
[-] wp_all_export_write_article.php
[edit]
[-] wp_all_export_comments_clauses.php
[edit]
[-] wp_redirect_or_javascript.php
[edit]
[-] wp_all_export_rand_char.php
[edit]
[-] str_getcsv.php
[edit]
[-] wp_all_export_get_export_format.php
[edit]
[-] wp_all_export_remove_source.php
[edit]
[-] pmxe_render_xml_text.php
[edit]
[-] pmxe_render_xml_element.php
[edit]
[-] wp_all_export_reverse_rules_html.php
[edit]
[-] wp_all_export_filter_xml_element_name.php
[edit]
[-] wp_all_export_is_compatible.php
[edit]
[-] wp_all_export_remove_before_post_except_toolset_actions.php
[edit]
[-] pmxe_functions.php
[edit]
[-] wp_all_export_break_into_files.php
[edit]
[-] wp_all_export_get_cpt_name.php
[edit]
[-] wp_all_export_pre_user_query.php
[edit]
[-] get_taxonomies_by_object_type.php
[edit]
[-] wp_all_export_parse_field_name.php
[edit]
[+]
..
[-] wp_all_export_secure_file.php
[edit]
[-] pmxe_render_xml_attributes.php
[edit]
[-] pmxe_prepare_price.php
[edit]
[-] wp_all_export_posts_where.php
[edit]
[-] wp_all_export_remove_colons.php
[edit]
[-] wp_all_export_terms_clauses.php
[edit]
[-] wp_all_export_posts_join.php
[edit]
[-] backward.php
[edit]
[-] pmxe_filter.php
[edit]