$69 GRAYBYTE WORDPRESS FILE MANAGER $44

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bqrcodec/contact.fpt.auto/wp-content/plugins/wp-all-export-pro/actions/

HOME
Current File : /home/bqrcodec/contact.fpt.auto/wp-content/plugins/wp-all-export-pro/actions//init.php
<?php

function pmxe_init()
{
    if ( ! empty($_GET['zapier_auth']) )
    {
        if ( ! empty($_GET['api_key']) )
        {

            $zapier_api_key = PMXE_Plugin::getInstance()->getOption('zapier_api_key');

            if ( ! empty($zapier_api_key) and $zapier_api_key == $_GET['api_key'] )
            {
                exit(json_encode(array('status' => 'success')));
            }
            else
            {
                http_response_code(401);
                exit(json_encode(array('status' => esc_html__('Error. Incorrect API key, check the WP All Export Pro settings page.', 'wp_all_export_plugin'))));
            }
        }
        else
        {
            http_response_code(401);
            exit(json_encode(array('status' => esc_html__('Error. Incorrect API key, check the WP All Export Pro settings page.', 'wp_all_export_plugin'))));
        }
    }
    if(!empty($_GET['check_connection'])) {
        exit(json_encode(array('success' => true)));
    }

    $custom_types = get_post_types(array('_builtin' => true), 'objects') + get_post_types(array('_builtin' => false, 'show_ui' => true), 'objects') + get_post_types(array('_builtin' => false, 'show_ui' => false), 'objects');

    foreach ($custom_types as $key => $ct) {
        if (in_array($key, array('attachment', 'revision', 'nav_menu_item', 'import_users', 'shop_webhook', 'acf-field', 'acf-field-group'))) unset($custom_types[$key]);
    }
    $custom_types = apply_filters('wpallexport_custom_types', $custom_types);

    foreach ($custom_types as $slug => $type) {

        if ($slug) {

            add_action('rest_after_insert_' . $slug, function ($post) {

                $post_id = $post->ID;
                if (wp_is_post_revision($post_id)) {
                    return;
                }

                $post = get_post($post_id);

                if ($post->post_type === 'shop_order' || ($post->post_type === 'property' && class_exists('Easy_Real_Estate'))) {
                    return;
                }

                $list = new PMXE_Export_List();

                $exportList = $list->setColumns($list->getTable() . '.*')->getBy();

                foreach ($exportList as $export) {
                    if (
                        isset($export['options']['enable_real_time_exports']) &&
                        $export['options']['enable_real_time_exports'] &&
                        isset($export['options']['enable_real_time_exports_running']) &&
                        $export['options']['enable_real_time_exports_running']
                    ) {
                        if (in_array($post->post_type, $export['options']['cpt'])) {

                            if ($post_id) {

                                $exportRecord = new PMXE_Export_Record();
                                $exportRecord->getById($export['id']);
                                $exportRecord->execute(false, true, $post_id);
                            }
                        }
                    }
                }

            });
        }
    }

    add_action('wp_after_insert_post', function($post) {

        if(!class_exists('Easy_Real_Estate')) {
            return;
        }

        if(!is_object($post)) {
            $post = get_post($post);
        }

        if(!is_object($post)) {
            return false;
        }

        if($post->post_type !== 'property') {
            return false;
        }

        if($post->post_status !== 'publish') {
            return false;
        }

        if (defined('REST_REQUEST') && REST_REQUEST // (#1)
            || isset($_GET['rest_route']) // (#2)
            && strpos($_GET['rest_route'], '/', 0) === 0) {
            return;
        }

        if(wp_is_post_revision($post->ID)) {
            return;
        }

        $property_id = $post->ID;

        $list = new PMXE_Export_List();
        $exportList = $list->setColumns($list->getTable() . '.*')->getBy();

        foreach ($exportList as $export) {
            if (
                isset($export['options']['enable_real_time_exports']) &&
                $export['options']['enable_real_time_exports'] &&
                isset($export['options']['enable_real_time_exports_running']) &&
                $export['options']['enable_real_time_exports_running']
            ) {
                if (in_array('property', $export['options']['cpt'])) {

                    if ($property_id) {
                        $exportRecord = new PMXE_Export_Record();
                        $exportRecord->getById($export['id']);
                        $exportRecord->execute(false, true, $property_id);
                    }
                }
            }
        }

    });
}

Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
admin_head.php
0.914 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
admin_init.php
2.724 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
admin_menu.php
5.842 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
admin_notices.php
0.493 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
gform_pre_handle_confirmation.php
0.933 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
init.php
4.591 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
pmxe_after_export.php
22.42 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
pmxe_before_export.php
1.05 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
pmxe_exported_post.php
0.585 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
user_register.php
0.827 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
woocommerce_order_status_completed.php
0.91 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
wp_ajax_dismiss_export_warnings.php
0.664 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
wp_ajax_dismiss_review_modal.php
0.485 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
wp_ajax_dismiss_warnings.php
0.683 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
wp_ajax_generate_zapier_api_key.php
0.538 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
wp_ajax_get_xml_spec.php
1.027 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
wp_ajax_save_functions.php
1.711 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
wp_ajax_save_scheduling.php
1.455 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
wp_ajax_scheduling_dialog_content.php
37.999 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
wp_ajax_send_feedback.php
0.479 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
wp_ajax_wpae_available_rules.php
5.804 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
wp_ajax_wpae_filtering.php
3.478 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
wp_ajax_wpae_filtering_count.php
24.474 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
wp_ajax_wpae_generate_token.php
1.013 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
wp_ajax_wpae_preview.php
18.018 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
wp_ajax_wpae_realtime_export_status.php
0.835 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
wp_ajax_wpae_remove_token.php
0.681 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
wp_ajax_wpallexport.php
21.293 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
wp_insert_comment.php
1.136 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
wp_loaded.php
29.481 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
wpmu_new_blog.php
0.685 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF