Created
February 20, 2026 10:55
-
-
Save JarrydLong/a3b8056fb5ffbc580943e6505d5c417d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php //do not copy | |
| /* This recipe will add a tag ID to the list of subscriber tags. | |
| * Use the $user object to add this information conditionally | |
| * | |
| * You can add this recipe to your site by creating a custom plugin | |
| * or using the Code Snippets plugin available for free in the WordPress repository. | |
| * Read this companion article for step-by-step directions on either method. | |
| * https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
| */ | |
| function my_pmprokit_subscriber_tag_ids( $new_tag_ids, $user ) { | |
| $new_tag_ids[] = 'USE_TAG_ID_FROM_KIT'; | |
| return $new_tag_ids; | |
| } | |
| add_filter( 'pmprokit_subscriber_tag_ids', 'my_pmprokit_subscriber_tag_ids', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment