Typography Enqueue

function typography_enqueue_styles() { // Enqueue Typeboost.css from Cloudflare CDN wp_enqueue_style(‘typeboost-css’, ‘https://cdnjs.cloudflare.com/ajax/libs/typeboost/1.0.0/typeboost.css’, array(), ‘1.0.0’); // Enqueue webfontloader.js from Cloudflare CDN wp_enqueue_script(‘webfontloader’, ‘https://cdnjs.cloudflare.com/ajax/libs/webfont/1.6.28/webfontloader.js’, array(), ‘1.6.28’, true); } add_action(‘wp_enqueue_scripts’, ‘typography_enqueue_styles’);Continue reading

SYNC – Gravity Forms, Fields

/** * WPCode Snippet: Gravity Forms & Feeds Sync Engine * Description: Manual sync functionality for forms and their feeds * Location: Run Everywhere * Priority: 20 */ defined( ‘ABSPATH’ ) || exit; // Add a manual test button in…Continue reading

ACF – Forms & Feeds Settings

/** * WPCode Snippet: Gravity Forms & Feeds ACF Fields * Description: Registers ACF fields for form and feed data * Location: Run Everywhere * Priority: 10 */ defined( ‘ABSPATH’ ) || exit; add_action( ‘acf/init’, function() { if ( !…Continue reading

CPT – Gravity Forms Feeds & Settings

/** * WPCode Snippet: Gravity Forms & Feeds CPT Registration * Description: Registers custom post type for Gravity Forms with feed tracking * Location: Run Everywhere * Priority: 0 */ defined( ‘ABSPATH’ ) || exit; add_action( ‘init’, function() { $labels…Continue reading

Redirect from Array

function custom_redirect_old_new_urls() { $redirect_urls = array( ‘/oldpage/’ => ‘/newpage/’, ‘/oldpage1/’ => ‘/newpage1/’, // Add more URLs here ); $request_uri = home_url( add_query_arg( array(), $_SERVER[‘REQUEST_URI’] ) ); foreach ( $redirect_urls as $old_url => $new_url ) { if ( untrailingslashit( $request_uri )…Continue reading