Campaign Archive Block for Mailchimp icon
Email & Marketing

Campaign Archive Block for Mailchimp hooks reference

Campaign Archive Block for Mailchimp 2.2.1 has 0 actions and 5 filters, read directly from its source code on Nov 18, 2026. The list updates automatically when a new version is released.

How to use these hooks

Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.

functions.phpyour child theme
// Change a value Campaign Archive Block for Mailchimp is about to use
add_filter( 'cabfm_cache_minutes', function( $value ) {
	// Change $value here.
	return $value;
}, 10, 1 );

Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.

All hooks

  • lib/Helpers/MailchimpAPI.php line 202
    /**
     * Filters the cache duration defined in minutes.
     */
    apply_filters( 'cabfm_cache_minutes', 60 );
  • lib/Blocks/CampaignArchive.php line 132
    /**
     * Filters the rendered block markup.
     */
    apply_filters( 'cabfm_campaigns_markup', $campaign_markup, $campaigns, $attributes );
  • lib/Blocks/CampaignArchive.php line 44
    /**
     * Filters query arguments used to get the campaigns.
     */
    apply_filters( 'cabfm_campaigns_query_args', $query_args, $attributes );
  • lib/Helpers/MailchimpAPI.php line 75
    /**
     * Filters the Mailchimp API base URL.
     */
    apply_filters( 'cabfm_helper_api_base', sprintf( 'https://%s.api.mailchimp.com/3.0', self::$server_prefix ), self::$server_prefix );
  • lib/Helpers/MailchimpAPI.php line 99
    /**
     * Allow developers to filter the request args passed to
     * wp_safe_remote_request(). Useful to remove sslverify when working on a local
     * api dev environment.
     */
    apply_filters( 'cabfm_helper_api_request_args', $args, $endpoint );

Generated from Campaign Archive Block for Mailchimp's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Done for you

Rather have it built for you?

Tell us what should change and we’ll write and test the code using these hooks.

Plugin customisation

from $149

New features or changed behaviour, without editing the plugin’s files.

  • Built as a companion plugin, so updates never wipe it
  • Exact quote before we start
  • Tested on staging, then deployed

Typical turnaround: 3–7 business days

Choose this

Not sure which fits? Describe what you need and we’ll suggest the simplest option.

Can't find the right hook?

We can build the customisation for you. Describe what you need: