backward.php
1 month ago
get_taxonomies_by_object_type.php
1 month ago
pmxe_filter.php
1 month ago
pmxe_functions.php
1 month ago
pmxe_prepare_price.php
1 month ago
pmxe_render_xml_attributes.php
1 month ago
pmxe_render_xml_element.php
1 month ago
pmxe_render_xml_text.php
1 month ago
str_getcsv.php
1 month ago
wp_all_export_check_children_assign.php
1 month ago
wp_all_export_clear_xss.php
1 month ago
wp_all_export_comments_clauses.php
1 month ago
wp_all_export_generate_export_file.php
1 month ago
wp_all_export_get_cpt_name.php
1 month ago
wp_all_export_get_export_format.php
1 month ago
wp_all_export_is_compatible.php
1 month ago
wp_all_export_parse_field_name.php
1 month ago
wp_all_export_posts_join.php
1 month ago
wp_all_export_posts_where.php
1 month ago
wp_all_export_pre_user_query.php
1 month ago
wp_all_export_prepare_template_csv.php
1 month ago
wp_all_export_prepare_template_xml.php
1 month ago
wp_all_export_rand_char.php
1 month ago
wp_all_export_remove_colons.php
1 month ago
wp_all_export_remove_source.php
1 month ago
wp_all_export_reverse_rules_html.php
1 month ago
wp_all_export_rmdir.php
1 month ago
wp_all_export_secure_file.php
1 month ago
wp_all_export_terms_clauses.php
1 month ago
wp_all_export_url_title.php
1 month ago
wp_all_export_write_article.php
1 month ago
wp_redirect_or_javascript.php
1 month ago
wp_all_export_posts_where.php
22 lines
| 1 | <?php |
| 2 | |
| 3 | // phpcs:ignoreFile WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound,WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound,WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound -- legitimate plugin prefixes (pmxe/PMXE/wpae/Wpae/wp_all_export/wpallexport/XmlExport/CdataStrategy/VariableProductTitle/Soflyy/GF_Export); Plugin Check does not honor phpcs.xml prefix declaration |
| 4 | defined( 'ABSPATH' ) || exit; |
| 5 | |
| 6 | |
| 7 | function wp_all_export_posts_where($where) |
| 8 | { |
| 9 | if ( ! empty(PMXE_Plugin::$session) and PMXE_Plugin::$session->has_session() ) |
| 10 | { |
| 11 | // manual export run |
| 12 | $customWhere = PMXE_Plugin::$session->get('whereclause'); |
| 13 | $where .= $customWhere; |
| 14 | } |
| 15 | else |
| 16 | { |
| 17 | // cron job execution |
| 18 | if ( ! empty(XmlExportEngine::$exportOptions['whereclause']) ) $where .= XmlExportEngine::$exportOptions['whereclause']; |
| 19 | } |
| 20 | |
| 21 | return $where; |
| 22 | } |