MC4WP_Admin_Ajax::refresh_mailchimp_lists ()

Empty lists cache & fetch lists again.

Source file: admin/class-admin-ajax.php

View source


Used by

Uses


Source

    public function refresh_mailchimp_lists() {

        if( ! $this->tools->is_user_authorized() ) {
            wp_send_json(false);
        }

        $mailchimp = new MC4WP_MailChimp();
        $lists = $mailchimp->fetch_lists();
        $success = ! empty( $lists );
        wp_send_json( $success );
    }


User Contributed Notes

You must log in before being able to contribute a note.