$28 GRAYBYTE WORDPRESS FILE MANAGER $75

SERVER : premium134.web-hosting.com #1 SMP Thu Mar 13 14:29:12 UTC 2025
SERVER IP : 162.0.232.104 | ADMIN IP 216.73.216.50
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/raydofqv/raydget.vip/wp-content/plugins/mailchimp-for-wp/includes/admin/

HOME
Current File : /home/raydofqv/raydget.vip/wp-content/plugins/mailchimp-for-wp/includes/admin//class-admin-ajax.php
<?php

class MC4WP_Admin_Ajax
{
    /**
     * @var MC4WP_Admin_Tools
     */
    protected $tools;

    /**
     * MC4WP_Admin_Ajax constructor.
     *
     * @param MC4WP_Admin_Tools $tools
     */
    public function __construct(MC4WP_Admin_Tools $tools)
    {
        $this->tools = $tools;
    }

    /**
     * Hook AJAX actions
     *
     * @return void
     */
    public function add_hooks()
    {
        add_action('wp_ajax_mc4wp_get_list_details', [ $this, 'get_list_details' ]);
    }


    /**
     * Retrieve details (merge fields and interest categories) for one or multiple lists in Mailchimp
     * @throws MC4WP_API_Exception
     */
    public function get_list_details()
    {
        if (! $this->tools->is_user_authorized()) {
            wp_send_json_error();
        }

        $list_ids  = (array) explode(',', $_GET['ids']);
        $data      = [];
        $mailchimp = new MC4WP_MailChimp();
        foreach ($list_ids as $list_id) {
            $data[] = (object) [
                'id'                  => $list_id,
                'merge_fields'        => $mailchimp->get_list_merge_fields($list_id),
                'interest_categories' => $mailchimp->get_list_interest_categories($list_id),
                'marketing_permissions' => $mailchimp->get_list_marketing_permissions($list_id),
            ];
        }

        if (isset($_GET['format']) && $_GET['format'] === 'html') {
            $merge_fields          = $data[0]->merge_fields;
            $interest_categories   = $data[0]->interest_categories;
            $marketing_permissions = $data[0]->marketing_permissions;
            require MC4WP_PLUGIN_DIR . '/includes/views/parts/lists-overview-details.php';
        } else {
            wp_send_json($data);
        }
        exit;
    }
}


Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
8 Jun 2026 8.15 AM
raydofqv / raydofqv
0755
migrations
--
8 Jun 2026 8.15 AM
raydofqv / raydofqv
0755
.htaccess
0.231 KB
8 Jun 2026 8.15 AM
raydofqv / raydofqv
0555
class-admin-ajax.php
1.748 KB
16 Mar 2026 4.43 PM
raydofqv / raydofqv
0644
class-admin-messages.php
1.536 KB
16 Mar 2026 4.43 PM
raydofqv / raydofqv
0644
class-admin-texts.php
2.699 KB
16 Mar 2026 4.43 PM
raydofqv / raydofqv
0644
class-admin-tools.php
1.574 KB
16 Mar 2026 4.43 PM
raydofqv / raydofqv
0644
class-admin.php
16.604 KB
16 Mar 2026 4.43 PM
raydofqv / raydofqv
0644
class-ads.php
7.048 KB
16 Mar 2026 4.43 PM
raydofqv / raydofqv
0644
class-review-notice.php
2.899 KB
16 Mar 2026 4.43 PM
raydofqv / raydofqv
0644
class-upgrade-routines.php
1.869 KB
16 Mar 2026 4.43 PM
raydofqv / raydofqv
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF Static GIF