Skip to content

Instantly share code, notes, and snippets.

@JarrydLong
Created February 20, 2026 10:55
Show Gist options
  • Select an option

  • Save JarrydLong/a3b8056fb5ffbc580943e6505d5c417d to your computer and use it in GitHub Desktop.

Select an option

Save JarrydLong/a3b8056fb5ffbc580943e6505d5c417d to your computer and use it in GitHub Desktop.
<?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