Search results for code examples
274 articles found
-
groundhogg/steps/{type}/run/before
This Groundhogg hook used to run custom code before the action. It requires a type of action for hooking into the process. do_action( "groundhogg/steps/{type}/run/before", $this ); This hook provides
-
groundhogg/steps/{type}/run/after
This Groundhogg hook used to run custom code after the action. It requires a type of action for hooking into the process. do_action( "groundhogg/steps/{type}/run/after", $this ); This hook provides
-
Adding HTML Columns Inside Emails
Sometimes the built-in elements of Groundhogg are not enough for creating the wondrous emails you want to create. That’s why Groundhogg comes with an HTML editor that users can use to edit the HTML
-
groundhogg/steps/reporting/after
This Groundhogg hook used to add a custom code after each and every step inside the funnel builder's reporting view. Here, steps can be a benchmark or action. do_action(
-
groundhogg/steps/reporting/before
This Groundhogg hook used to add a custom code before each and every step inside the funnel builder's reporting view. Here, steps can be a benchmark or action. do_action(
-
Text Messaging (SMS): Create a custom SMS integration
Want to add your own custom SMS integration? You can do that. Copy the code below and add it to a custom plugin file on your site. Once you add the code your custom SMS service will show in the SMS
-
groundhogg/admin/{slug}/{current_tab}
This hook is used to add custom code in the tab layout page. This hook accepts the current tab value in tab thus users will be able to display custom code for a specific tab on the page. do_action(
-
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 -
-
What Is Transactional Email
Warning! You should not use transactional type email for all your emails, this can land you in legal trouble with your local authorities. When you send an email using a funnel or one-off email you
-
Do you offer Two-Factor Authentication
Groundhogg's Account Dashboard can be set up with Two-Factor Authentication(2FA) which significantly improves login security. Groundhogg uses WordFence for its 2FA. 2FA works with a number of
-
groundhogg/broadcast/{broadcast_type}/before
Execute a block of code before sending a specific type of broadcast. do_action( "groundhogg/broadcast/{broadcast_type}/before", $this, $contact, $event ); Here, broadcast_type will be replaced with
-
groundhogg/broadcast/{broadcast_type}/after
Execute a block of code after sending a specific type of broadcast. do_action( "groundhogg/broadcast/{broadcast_type}/after", $this, $contact, $event ); Here, broadcast_type will be replaced with the
-
How to auto-fill web forms.
If you would like a Groundhogg web form to be pre-filled with a contact's information you can do that! All you have to do is use a replacement code for the field value. In the form editor, click the
-
Email Blocks: Query Loop
Block Settings Layout Query Reference Layout Columns (Default: 2) Select the number of columns Gap (Default: 10px) Adjust the gap between columns Thumbnail Size(Thumbnail, Medium, Large, and any
-
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
-
Action: Plugin API Action
If you would like to create your own custom Action use the Plugin API Action. To add the Plugin API Action to the funnel flow, either click the "+" at the branch and click the Plugin API Action step
-
WooCommerce: Adding data from the Checkout Field Editor
If you utilize WooCommerce along with the " Checkout field editor" to incorporate additional fields into your checkout form and aim to gather data to append to your Contact, here's what you need to
-
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
-
Register an additional email service
Register an additional SendGrid email service that uses a custom API key when the contact is unconfirmed and the email type is marketing. Add this code to your theme's functions.php file or use a
-
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]
-
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' );
-
Introduction to Benchmarks
Benchmarks are a core component of Groundhogg. They serve as the starting points or triggers within your funnels, enabling you to automate workflows based on specific actions or events. Whether a
-
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 |
-
Text Messaging (SMS): Introduction
Groundhogg's amazing stacks provide access to SMS marketing along with email marketing. You can enable SMS marketing in Groundhogg by installing the SMS plugin on your website. You can download the
-
Benchmark: Custom Activity
So it's really for developers and third-party usage using our track_activity function A new version of WPFusion will also make it useful, but it's not useful on its own without code at the moment.
-
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