om-nextjs14.js

'use client'; import { usePathname } from 'next/navigation'; import { useEffect, useState } from 'react'; export…

OM-revenue-attribution-curl.sh

curl --request POST \ --url https://app.optinmonster.com/v2/revenue \ --header 'Content-Type: application/json' \ --header 'Origin: optinmonster.com' \ --header…

Replace Special Characters in Post Title

Replace special characters in Post Title with correct HTML entity

Colin Bunn PRO
<10

Add post meta if content has WP Tasty

This snippet will check if your migrated content has WP Tasty in it and if it…

<10

Disable Widgets blocks

//Disable Widgets blocks add_filter( 'use_widgets_block_editor', '__return_false' );

MFP > Deploy Show & Get Data

add_action('acf/save_post', 'add_show_children'); function add_show_children($post_id) { if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) return $post_id; if (!wp_is_post_revision($post_id) && 'show' ==…

MemberPress: Restrict Email Patterns for Specific Memberships

This code snippet prevents users with specific email patterns from registering for any of the specified…

modify woocommerce states list

Modyfiy Woocommerce state list to armenian towns villages or districts

WooCommerce: Hide other shipping methods when Free Shipping is available.

This function checks if the Free Shipping method is available in the cart. If it is,…

1 … 140 141 142 143 144 … 244