PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
plugins
/
wp-all-export-pro
/
actions
<?php function pmxe_wp_ajax_wpae_available_rules(){ if ( ! check_ajax_referer( 'wp_all_export_secure', 'security', false )){ exit( json_encode(array('html' => esc_html__('Security check', 'wp_all_export_plugin'))) ); } if ( ! current_user_can( PMXE_Plugin::$capabilities ) ){ exit( json_encode(array('html' => esc_html__('Security check', 'wp_all_export_plugin'))) ); } ob_start(); $input = new PMXE_Input(); $post = $input->post('data', array()); $is_date = false; if(class_exists('GF_Export_Add_On')) { $gf_addon = \GF_Export_Add_On::get_instance()->add_on; $element = $gf_addon->get_data_element_by_slug($post['selected']); if (isset($element['filterable']) && $element['filterable'] === 'date') { $is_date = true; } } ?> <select id="wp_all_export_rule"> <option value=""><?php esc_html_e('Select Rule', 'wp_all_export_plugin'); ?></option> <?php if (strpos($post['selected'], 'tx_') === 0 || strpos($post['selected'], 'product_tx') === 0){ ?> <!-- Taxonomies --> <option value="in"><?php echo esc_html('In', 'wp_all_export_plugin') . ' ' . ucwords(str_replace(array("product_tx", "tx_", "_"), array("", "", " "), $post['selected'])); ?></option> <option value="not_in"><?php echo esc_html('Not In', 'wp_all_export_plugin') . ' ' . ucwords(str_replace(array("product_tx", "tx_", "_"), array("", "", " "), $post['selected'])); ?></option> <?php } elseif( in_array($post['selected'], array('post_date', 'post_modified', 'user_registered', 'comment_date', 'cf__completed_date')) || $is_date ) { ?> <option value="equals"><?php esc_html_e('equals', 'wp_all_export_plugin'); ?></option> <option value="not_equals"><?php esc_html_e("doesn't equal", 'wp_all_export_plugin'); ?></option> <option value="greater"><?php esc_html_e('newer than', 'wp_all_export_plugin');?></option> <option value="equals_or_greater"><?php esc_html_e('equal to or newer than', 'wp_all_export_plugin'); ?></option> <option value="less"><?php esc_html_e('older than', 'wp_all_export_plugin'); ?></option> <option value="equals_or_less"><?php esc_html_e('equal to or older than', 'wp_all_export_plugin'); ?></option> <option value="contains"><?php esc_html_e('contains', 'wp_all_export_plugin'); ?></option> <option value="not_contains"><?php esc_html_e("doesn't contain", 'wp_all_export_plugin'); ?></option> <option value="is_empty"><?php esc_html_e('is empty', 'wp_all_export_plugin'); ?></option> <option value="is_not_empty"><?php esc_html_e('is not empty', 'wp_all_export_plugin'); ?></option> <?php } elseif( in_array($post['selected'], array('wp_capabilities'))) { ?> <option value="contains"><?php esc_html_e('contains', 'wp_all_export_plugin'); ?></option> <option value="not_contains"><?php esc_html_e("doesn't contain", 'wp_all_export_plugin'); ?></option> <?php } elseif ( in_array($post['selected'], array('user_login', 'user_nicename', 'user_role', 'user_email', 'display_name', 'first_name', 'last_name', 'nickname', 'description', 'post_status', 'post_title', 'post_content', 'comment_author_email', 'comment_author_url', 'comment_author_IP', 'comment_agent', 'comment_type', 'comment_content') ) ) { ?> <option value="equals"><?php esc_html_e('equals', 'wp_all_export_plugin'); ?></option> <option value="not_equals"><?php esc_html_e("doesn't equal", 'wp_all_export_plugin'); ?></option> <option value="contains"><?php esc_html_e('contains', 'wp_all_export_plugin'); ?></option> <option value="not_contains"><?php esc_html_e("doesn't contain", 'wp_all_export_plugin'); ?></option> <option value="is_empty"><?php esc_html_e('is empty', 'wp_all_export_plugin'); ?></option> <option value="is_not_empty"><?php esc_html_e('is not empty', 'wp_all_export_plugin'); ?></option> <?php } elseif ( in_array($post['selected'], array('term_parent_slug') ) ) { ?> <option value="equals"><?php esc_html_e('equals', 'wp_all_export_plugin'); ?></option> <option value="not_equals"><?php esc_html_e("doesn't equal", 'wp_all_export_plugin'); ?></option> <option value="greater"><?php esc_html_e('greater than', 'wp_all_export_plugin');?></option> <option value="equals_or_greater"><?php esc_html_e('equal to or greater than', 'wp_all_export_plugin'); ?></option> <option value="less"><?php esc_html_e('less than', 'wp_all_export_plugin'); ?></option> <option value="equals_or_less"><?php esc_html_e('equal to or less than', 'wp_all_export_plugin'); ?></option> <option value="is_empty"><?php esc_html_e('is empty', 'wp_all_export_plugin'); ?></option> <option value="is_not_empty"><?php esc_html_e('is not empty', 'wp_all_export_plugin'); ?></option> <?php } else { ?> <option value="equals"><?php esc_html_e('equals', 'wp_all_export_plugin'); ?></option> <option value="not_equals"><?php esc_html_e("doesn't equal", 'wp_all_export_plugin'); ?></option> <option value="greater"><?php esc_html_e('greater than', 'wp_all_export_plugin');?></option> <option value="equals_or_greater"><?php esc_html_e('equal to or greater than', 'wp_all_export_plugin'); ?></option> <option value="less"><?php esc_html_e('less than', 'wp_all_export_plugin'); ?></option> <option value="equals_or_less"><?php esc_html_e('equal to or less than', 'wp_all_export_plugin'); ?></option> <option value="contains"><?php esc_html_e('contains', 'wp_all_export_plugin'); ?></option> <option value="not_contains"><?php esc_html_e("doesn't contain", 'wp_all_export_plugin'); ?></option> <option value="is_empty"><?php esc_html_e('is empty', 'wp_all_export_plugin'); ?></option> <option value="is_not_empty"><?php esc_html_e('is not empty', 'wp_all_export_plugin'); ?></option> <?php } ?> </select> <?php exit(json_encode(array('html' => ob_get_clean()))); die; }
[-] pmxe_before_export.php
[edit]
[-] gform_pre_handle_confirmation.php
[edit]
[-] wp_ajax_wpae_generate_token.php
[edit]
[-] wp_ajax_save_functions.php
[edit]
[-] wp_ajax_dismiss_export_warnings.php
[edit]
[-] wp_ajax_get_xml_spec.php
[edit]
[-] pmxe_exported_post.php
[edit]
[-] wp_ajax_dismiss_warnings.php
[edit]
[-] admin_head.php
[edit]
[-] wp_loaded.php
[edit]
[-] wp_ajax_wpae_realtime_export_status.php
[edit]
[-] wp_ajax_wpae_preview.php
[edit]
[-] wp_ajax_send_feedback.php
[edit]
[-] wp_ajax_generate_zapier_api_key.php
[edit]
[-] pmxe_after_export.php
[edit]
[-] wp_ajax_dismiss_review_modal.php
[edit]
[-] wp_ajax_wpae_filtering_count.php
[edit]
[-] wpmu_new_blog.php
[edit]
[-] wp_insert_comment.php
[edit]
[-] wp_ajax_wpae_remove_token.php
[edit]
[-] user_register.php
[edit]
[-] wp_ajax_save_scheduling.php
[edit]
[+]
..
[-] admin_menu.php
[edit]
[-] admin_init.php
[edit]
[-] wp_ajax_wpae_filtering.php
[edit]
[-] init.php
[edit]
[-] wp_ajax_wpae_available_rules.php
[edit]
[-] woocommerce_order_status_completed.php
[edit]
[-] wp_ajax_scheduling_dialog_content.php
[edit]
[-] admin_notices.php
[edit]
[-] wp_ajax_wpallexport.php
[edit]