Skip to content

Commit 88e6867

Browse files
add sample snippet to show the create campaign button on post types of type page as well
1 parent b7d95c5 commit 88e6867

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
add_filter('mc4wp_post_campaign_post_types', function ($types) {
4+
// also show the "Create Mailchimp campaign" section for post types of type page
5+
$types[] = 'page';
6+
return $types;
7+
});

0 commit comments

Comments
 (0)