Rankmath Breadcrums
add_action(‘wp_head’, ‘mi_add_breadcrumbs’); function mi_add_breadcrumbs() { if (function_exists(‘rank_math_the_breadcrumbs’)) { echo ‘ ‘; rank_math_the_breadcrumbs(); echo ‘ ‘; } }Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_action(‘wp_head’, ‘mi_add_breadcrumbs’); function mi_add_breadcrumbs() { if (function_exists(‘rank_math_the_breadcrumbs’)) { echo ‘ ‘; rank_math_the_breadcrumbs(); echo ‘ ‘; } }Continue reading
add_action( ‘wp_enqueue_scripts’, static function () { $registration_page_id = (int) get_option( ‘wcv_signup_registration_page_id’, 0 ); if ( 0 === $registration_page_id || ! is_page( $registration_page_id ) ) { return; } $default_country = ‘US’; // ISO 3166-1 alpha-2 code (e.g., GB, CA, AU, …)…Continue reading
/** * ============================================================================ * FINAL WORDPRESS MULTI-PURPOSE “UPSERT” FUNCTION * ============================================================================ * @description This function provides a dynamic “upsert” (update or insert) * capability for any WordPress database table. It is designed to be * used as a custom function…Continue reading
// Add admin menu page add_action(‘admin_menu’, function() { add_submenu_page( ‘woocommerce’, ‘BACS Subscription Editor’, ‘BACS Subscription Editor’, ‘manage_woocommerce’, ‘bacs-subscription-editor’, ‘render_bacs_subscription_editor_page’ ); }); // Render the page function render_bacs_subscription_editor_page() { ?> BACS Subscription Editor Enter a WooCommerce Subscription ID to view and…Continue reading
/** * Copyright Shortcode * * Outputs copyright text with current year, site name, and Westline Marketing link. * * Usage: [copyright] */ function copyright_shortcode($atts) { // Get current year $current_year = date(‘Y’); // Get site name (WordPress function) $site_name…Continue reading
/** * Plugin Name: HTTPS Doorverwijzing (Internet.nl Compliant) * Description: Forceert HTTPS doorverwijzing volgens NCSC richtlijnen voor Internet.nl test * Version: 1.0 * Author: Pixelsz */ if ( ! defined( ‘ABSPATH’ ) ) exit; /** * 1) Force HTTPS redirect…Continue reading
/** * WPCode Snippet: Auto-Populate Field Details on CPT Sync * Location: Run Everywhere * Priority: 30 */ defined( ‘ABSPATH’ ) || exit; /** * Hook into CPT sync completion */ add_action( ‘gf_form_feeds_sync_complete’, ‘populate_gf_field_details_data’, 10, 2 ); /** * Main…Continue reading
/** * WPCode Snippet: Expose LifterLMS ACF Fields to REST API * Description: Makes LifterLMS module data accessible via Application Password authentication * Location: Run Everywhere * Priority: 15 */ defined( ‘ABSPATH’ ) || exit; /** * Register LifterLMS ACF…Continue reading
/** * WPCode Snippet: Expose Gravity Forms ACF Fields to REST API * Description: Makes Gravity Forms data accessible via Application Password authentication * Location: Run Everywhere * Priority: 15 */ defined( ‘ABSPATH’ ) || exit; /** * Register Gravity…Continue reading