Skip to content

Instantly share code, notes, and snippets.

@finalwebsites
Last active June 15, 2024 15:50
Show Gist options
  • Save finalwebsites/a5bf05ff45f0e238e44d4a22998b25b6 to your computer and use it in GitHub Desktop.
Save finalwebsites/a5bf05ff45f0e238e44d4a22998b25b6 to your computer and use it in GitHub Desktop.
Filter hook examples for the EmailOctopus for WordPress plugin
<?php
add_filter('fweo_emailoctopus_show_static', function($show, $post) {
/*
add here the conditions and return $show = true
for example:
*/
if (is_category()) $show = true;
return $show;
}, 10,2);
add_filter('fweo_add_extra_data_fields', function($data) {
/*
add here the additional data field value combinations
for example:
*/
$data['Fieldname1'] = 'some value';
return $data;
}, 10,2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment