Skip to content

Instantly share code, notes, and snippets.

<?php
add_filter( 'optin_monster_api_output', 'tgm_om_filter_lightbox_by_tag', 10, 4 );
function tgm_om_filter_lightbox_by_tag( $optins, $optin, $fields, $post_id ) {
// If in a particular tag, remove the lightbox.
$cat_exc = 362; // Replace with the tag ID to target.
$slug = 'sjdfhsjakdkg'; // Replace with the unique slug for the lightbox you want to remove.
$tags = wp_get_object_terms( $post_id, 'post_tag', array( 'fields' => 'ids' ) );
foreach ( (array) $tags as $tag_id ) {
if ( $tag_id && $tag_id == $cat_exc && in_array( $slug, $optins ) ) {

Contract Killer 3

Revised date: 07/11/2012

Between me, James Aaron Eaton and you [customer name]

Summary:

I’ll always do my best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. I have no desire to trick you into signing something that you might later regret. What I do want is what’s best for both parties, now and in the future.