Seamless integration with popular WordPress plugins for comprehensive consent-based content control and compliance tracking.
Granular consent control over widgets, popups, and dynamic content
E-commerce consent management and CCPA compliance
Consent tracking with form submissions
Consent tracking via custom form tags
Granular consent control over widgets, popups, and dynamic content
elementor/element/before_section_end(Action)Adds consent controls to widget settings
elementor/element/before_render(Action)Adds data attributes to widget wrapper
elementor/widget/render_content(Filter)Filters widget output based on consent
elementor/frontend/popup/before_render(Action)Controls popup visibility
elementor_pro/forms/form_submitted(Action)Logs consent with form submission
.elementor-widget.cookienod-require-consent-yesWidget requires consent (hidden by default)
.elementor-widget.cookienod-consent-given-marketingWidget shown after marketing consent
.elementor-widget.cookienod-consent-given-analyticsWidget shown after analytics consent
.elementor-widget.cookienod-consent-given-functionalWidget shown after functional consent
<!-- Widget wrapper includes consent category -->
<div class="elementor-widget"
data-consent-category="marketing">E-commerce consent management and CCPA compliance
CookieNod automatically adds consent checkboxes to the WooCommerce checkout:
Add a 'Do Not Sell My Personal Information' link to your footer:
<a href="#" class="cookienod-ccpa-optout">Do Not Sell My Personal Information</a>
Consent is stored with each order:
$order->get_meta('_cookienod_order_consent');
// Returns: array(
// 'marketing' => true,
// 'analytics' => false,
// ...
// )// Action: Consent given at checkout
add_action('cookienod_woocommerce_checkout_consent',
function($order_id, $consent) {
// Custom logic when consent is given
}, 10, 2);
// Filter: Modify consent checkbox labels
add_filter('cookienod_woocommerce_consent_labels',
function($labels) {
$labels['marketing'] = 'Custom text';
return $labels;
});Consent tracking with form submissions
Consent tracking is automatic. No configuration needed:
To require consent before a form can be submitted, add this to your form's custom settings:
// In functions.php or custom plugin
add_filter('gform_form_5', function($form) {
$form['cookienodRequiredConsent'] = 'marketing';
return $form;
});Replace 5 with your form ID and marketing with required category.
Consent is stored in Gravity Forms entry meta:
// Get consent data from entry $consent = gform_get_meta($entry_id, 'cookienod_consent'); // Returns: array( // 'marketing' => true, // 'analytics' => false, // ... // )
// Action: Marketing consent given
add_action('cookienod_gform_marketing_consent',
function($entry, $form) {
// Trigger marketing automation
}, 10, 2);
// Filter: Modify consent requirement
add_filter('gform_pre_render', function($form) {
if ($form['id'] == 3) {
$form['cookienodRequiredConsent'] = 'analytics';
}
return $form;
});Consent tracking via custom form tags
Use the [cookienod_consent] tag in your Contact Form 7 form:
<label>Your Name
[text* your-name] </label>
<label>Your Email
[email* your-email] </label>
[your-message]
<!-- Consent tracking (hidden) -->
[cookienod_consent]
[submit "Send Message"]To display the user's current consent status, use:
[cookienod_consent show_summary]
This displays a summary like:
Your Privacy Settings:
// Action: Consent data available
add_action('cookienod_cf7_submission',
function($contact_form, $consent) {
if (!empty($consent['marketing'])) {
// Add to marketing list
}
}, 10, 2);
// Filter: Modify consent summary
add_filter('cookienod_cf7_consent_summary',
function($html, $consent) {
// Customize display
return $html;
}, 10, 2);.wpcf7-consent-summaryConsent summary container
.cookienod-statusConsent status indicators (✓ green or ✗ red)