This file contains 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 | |
$feature_categories = [ | |
'crm', | |
'sales-automation', | |
'marketing-automation', | |
'email-marketing', | |
'integrations', | |
'developer-tools', | |
]; |
This file contains 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 | |
add_action( 'enqueue_groundhogg_calendar_scripts', function (){ | |
// language=javascript | |
$script = 'document.addEventListener("submit", function(event) { | |
// Check if the submitted element is a form with the specific class name | |
if (event.target.matches("form.details-form")) { | |
// Do GA stuff | |
} | |
});'; |
This file contains 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 | |
add_action( 'favorites_post', 'track_activity_when_post_is_favorited' ); | |
/** | |
* Tracks activity in Groundhogg when a user marks their post as favorite | |
* | |
* @param $post WP_Post | |
* | |
* @return void |
This file contains 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 | |
add_action( 'mepr-account-is-active', 'set_contact_optin_status_and_consent', 11 ); | |
/** | |
* When a member becomes active in MemberPress change their opt-in status to confirmed and set their consents | |
* | |
* @param $txn | |
* | |
* @return void |
This file contains 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 | |
add_action( 'groundhogg/generate_contact_with_map/before', 'prevent_sales_reps_from_importing_owner', 10, 2 ); | |
/** | |
* Removes the field mapping for the contact owner if the current user does not have edit_others_contacts permissions | |
* | |
* @param $fields array | |
* @param $map array |
This file contains 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 | |
add_filter( 'edd_add_to_cart_item', 'update_price_id_during_renewal_if_license_expired_past_3_months', 10, 1 ); | |
/** | |
* Update the price_id to the download's default if the license is expired by 3 months | |
* | |
* @param $item | |
* | |
* @return array the item |
This file contains 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 | |
add_action( 'groundhogg/replacements/init', 'register_my_custom_replacement_codes' ); | |
/** | |
* Register any custom replacement codes | |
* | |
* @param $replacements \Groundhogg\Replacements | |
*/ | |
function register_my_custom_replacement_codes( $replacements ) { |
This file contains 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 | |
add_filter( 'groundhogg/zerobounce/zb_status', 'filter_zb_status', 10, 2 ); | |
/** | |
* Filter the status | |
* | |
* @param string|false $status | |
* @param \Groundhogg\Contact $contact | |
* |
NewerOlder