Search results for code examples

219 articles found

  • How To Confirm An Email Address

    Email confirmation is required under GDPR and CASL. The email confirmation does 2 things, it verifies the identity of the contact and confirms they are consenting to receive marketing information to

  • Email Blocks: Button

    Button Block Tab Content Text(Enter the text for the button, Replacement code) Link(Insert a URL, Replacement code) Size(Small, Medium, Large - Default: Medium) Alignment(Right, Center, Left -

  • Email Blocks: Posts

    Block Settings Layout Card Style Heading Excerpt Thumbnail Query Layout Layout (Cards, Numbered List, Unordered List, H1, H2, H3, H4, H5) Featured (On/Off) Displays a large single-column post above

  • Advanced Features: How to use Superlinks

    Superlinks are a helpful tool for filling in automation gaps based on subscriber interaction with your content. Essentially, they allow you to add tags, remove tags or update meta fields to a contact

  • Putting a YouTube Video Into a Email

    If you want your subscribers to watch a YouTube video you may want to take the embed code of a YouTube video, create a HTML block, and paste that embed code. And while that would work on a website,

  • groundhogg/admin/contacts/add/form/after

    This hook is used to add extra code after the add contact from. do_action( 'groundhogg/admin/contacts/add/form/after' );

  • groundhogg/import/form/after

    This hook is used to add code after the import section on the tools page. do_action('groundhogg/import/form/after' );

  • groundhogg/import/form/before

    This hook is used to add code before the import section on the tools page. do_action('groundhogg/import/form/after' );

  • [preferenes-file] Shortcode

    When you install Groundhogg it creates a page called Preference Center which contains a short code [preferences-center] [preferences-center]

  • Create a Web Form

    You can use Web Forms to collect contact information and start funnels. This is generally the most common tool to capture contact data. Groundhogg has a simple built-in form builder that will serve

  • groundhogg/admin/contacts/add/form/name

    This hook is used to add custom code after the name section of contact on the add contact page. do_action( 'groundhogg/admin/contacts/add/form/name' );

  • groundhogg/updater/{updater_name}/finished

    This action hook is used to run a block of code when Groundhogg is updated to a new version. do_action( "groundhogg/updater/{$this->get_updater_name()}/finished" );

  • groundhogg/admin/contacts/add/form/tags

    This hook is used to add custom code after the segmentation section of the contact on the add contact page. do_action( 'groundhogg/admin/contacts/add/form/tags' );

  • groundhogg/admin/contacts/add/form/contact_info

    This hook is used to add custom code after the contact info section of contact on the add contact page. do_action( 'groundhogg/admin/contacts/add/form/contact_info' );

  • groundhogg/admin/contacts/add/form/notes

    This hook is used to add custom code in the Notes section of the contact on the add contact page. do_action( 'groundhogg/admin/contacts/add/form/notes' );

  • REST API V3 / Contact / Delete

    URL DELETE /wp-json/gh/v3/contacts Method This endpoint supports the DELETE method. Request To delete a contact record you must pass these arguments. PARAM TYPE REQUIRED EXAMPLE id_or_email string |

  • groundhogg/admin/tags/add/form

    This hook is used to add custom code in the form of adding tags before the submit button on the tag page. do_action( 'groundhogg/admin/tags/add/form' );

  • groundhogg/event/failed

    Used to run a block of code when groundhogg event failed. do_action('groundhogg/event/failed', $this); You will receive the object of an event class as an argument.

  • groundhogg/event_queue/process/after

    Used to run a block of code before any event completed. do_action('groundhogg/event/run/before', $this); You will receive the object of an event class as an argument.

  • groundhogg/event/run/after

    Used to run a block of code after any event completed. do_action('groundhogg/event/run/after', $this); You will receive the object of an event class as an argument.

  • groundhogg/event/cancelled

    Used to run a block of code when the event is cancelled. do_action('groundhogg/event/cancelled', $this); You will receive the object of an event class as an argument.

  • groundhogg/replacements/init

    Used to add custom replacement code inside Groundhogg. do_action( 'groundhogg/replacements/init', $this ); This hook provides the object of the replacement class as an argument to work with.

  • groundhogg/event/pause

    Used to run a block of code when event status changed to pause. do_action('groundhogg/event/pause', $this); You will receive the object of an event class as an argument.

  • groundhogg/event/complete

    Used to run a block of code when the event status changed to complete. do_action('groundhogg/event/complete', $this); You will receive the object of an event class as an argument.

  • groundhogg/admin/tags/edit/form

    This hook is used to add custom code in the tag's edit page. do_action( 'groundhogg/admin/tags/edit/form', $id ); This hook provides tag ID as an argument to work with.

  • groundhogg/event/skipped

    Used to run a block of code when the event marked as a skipped event. do_action('groundhogg/event/skipped', $this); You will receive the object of an event class as an argument.

  • groundhogg/event/in_progress

    Used to run a block of code when the event before event goes to in progress mode. do_action('groundhogg/event/in_progress', $this); You will receive the object of an event class as an argument.

  • groundhogg/event/queued

    Used to run a block of code when the event is put in an execution queue by the Groundhogg plugin. do_action('groundhogg/event/queued', $this); You will receive the object of an event class as an

  • groundhogg/event/run/before

    This action hook is used to run custom code after the event is processed by the event queue of Groundhogg. do_action( 'groundhogg/event_queue/process/after', $this ); Using this hook developer can

  • How do I redirect a contact after they have confirmed their email?

    If you want to redirect the contact to a landing page after they have confirmed their email address you can do so with the following replacement code syntax. Formatted link:

  • groundhogg/form/shortcode/after

    This function is used to add custom code after the form shortcode is processed by the Groundhogg form builder. do_action( 'groundhogg/form/shortcode/after', $this ); This hook provides the object of

  • groundhogg/form/shortcode/before

    This function is used to add custom code before the form shortcode is processed by the Groundhogg form builder. do_action( 'groundhogg/form/shortcode/before', $this ); This hook provides the object

  • groundhogg/event_queue/process/before

    This action hook is used to run custom code before the event is processed by the event queue of Groundhogg. do_action( 'groundhogg/event_queue/process/before', $event_ids ); Using this hook developer

  • groundhogg/admin/{slug}

    This hook is used to add custom code on the top of the admin pages when pages are using tab page architecture. do_action( "groundhogg/admin/{$this->get_slug()}", $this ); This hook comes with an

  • groundhogg/email_notification/run/before

    This hook is used to add custom code before an email notification sends to a customer. do_action( 'groundhogg/email_notification/run/before', $this, $contact, $event ); This hook provides three

  • groundhogg/email_notification/run/after

    This hook is used to add custom code after email notification sends to a customer. do_action( 'groundhogg/email_notification/run/after', $this, $contact, $event ); This hook provides three objects to

  • [gh_contact] Shortcode

    This shortcode allows you to merge contact data into your content. This code works on a per-field basis, and you can also pass a default parameter in the event that the field doesn’t exist.

  • groundhogg/admin/emails/add/{tab}

    This hook is used to add a new tab inside the add page of the email builder. This hook provides the functionality to manage the response. do_action( "groundhogg/admin/emails/add/{tab}" ); While using

  • Remove "powered by Groundhogg"

    To remove add the code provided below to your theme's functions.php file or a snippets plugin. //Remove "powered by groundhogg" and link add_filter( 'groundhogg/proof/show_proof/credit_link_atts',

  • REST API V3 / SMS / Send

    URL POST /wp-json/gh/v3/sms/send Method This endpoint supports the POST method. Request This endpoint provides functionality to send SMS to the contact. PARAM TYPE REQUIRED DESCRIPTION id_or_email

  • groundhogg/steps/{type}/settings/before

    This Groundhogg hook used to add a custom setting before specific step settings inside the funnel builder. Here, type can be a benchmark or action. do_action(

  • groundhogg/steps/{type}/settings/after

    This Groundhogg hook used to add a custom setting after specific step settings inside the funnel builder. Here, type can be a benchmark or action. do_action( "groundhogg/steps/{type}/settings/after",

  • groundhogg/form/fields/init

    This action hook is used to add form controls via hook. This hook is executed when all the controls of the form loaded. do_action( 'groundhogg/form/fields/init', $this ); This hook returns the object

  • groundhogg/steps/settings/before

    This Groundhogg hook used to add a custom setting before each and every step inside the funnel builder. Here, steps can be a benchmark or action. do_action( "groundhogg/steps/settings/before", $this

  • groundhogg/steps/settings/after

    This Groundhogg hook used to add a custom setting after each and every step inside the funnel builder. Here, steps can be a benchmark or action. do_action( "groundhogg/steps/settings/after", $this );

  • groundhogg/event_queue/process/after

    This action hook is used to run custom code once Groundhogg has completed the execution of an event using the event queue. do_action( 'groundhogg/event_queue/process/after', $this ); Using this hook

  • groundhogg/steps/{type}/reporting/before

    This Groundhogg hook used to add a custom data in the reporting view of the step before the inbuilt reporting view. Here, type can be a benchmark or action. do_action(

  • groundhogg/steps/{type}/reporting/after

    This Groundhogg hook used to add a custom data in the reporting view of the step after the inbuilt reporting view. Here, type can be a benchmark or action. do_action(

  • Replacements Keyboard Shortcut

    Replacement codes are very useful and merge in user data to whichever supported content you want, such as emails, notifications, text messages and more. There is a keyboard shortcut to bring up the

  • Embed a web form on another site

    You have multiple options to embed your form on other sites. All of which can be copied from the benchmark in the funnel builder. You can: Use the Iframe JavaScript embed code to embed your form on