om-nextjs.js
import { useEffect } from 'react'; import { useRouter } from 'next/router'; const OptinMonsterEmbed = ()…
Add Informational Message Below the Username Field in the Login/Register Form #The Greek
This code adds an informational message below the username input field in the login or registration…
Disable default WordPress image sizes
// Disable default WordPress image sizes add_filter('intermediate_image_sizes', '__return_empty_array'); // Disable large scaled image size add_filter('big_image_size_threshold', '__return_false');…
Display the stock availability for all product types in WooCommerce archive pages
Learn how to add Availability label ? in your WooCommerce website. This will help to notify…
MemberPress: ACF - Exclude Protected Posts From ACF Repeater Field
The code snippet ensures that protected MemberPress posts are excluded from custom queries used in Advanced…
Book Review
Used to list book review recommendations
Google adsense
To connect to Google AdSense
WPForms: new smart tag - Current Date/Time
It's a localized date/time in this format: Y-m-d H:i:s
Google Search Console Verification
HTML tag
Add extra shipping providers for vendor tracking numbers
$shipping_providers = array( 'Australia' => array( 'Australia Post' => 'https://auspost.com.au/mypost/track/#/details/%1$s', 'FedEx' => 'https://www.fedex.com/apps/fedextrack/?tracknumbers=%1$s&cntry_code=au', 'Fastway Couriers' =>…
Protect Elementor Forms
/** * Protect Elementor Forms */ add_action( 'elementor_pro/forms/validation/email', function( $field, $record, $ajax_handler ) { // validate…
WP Simple Pay: Conditionally Dequeue Scripts & Styles
Conditionally dequeue scripts & styles based on set conditions. In this example, we remove all plugin…
Remove Gutenberg Blocks CSS
add_action( 'wp_enqueue_scripts', function () { wp_dequeue_style( 'wp-block-library' ); wp_dequeue_style( 'wp-block-library-theme' ); // Remove WooCommerce block CSS…
Emails via two different Postmark streams based on the email subject
WP Mail SMTP plugin does not directly support selecting a specific Postmark message stream based on…