terminal-waiting-system

/** * Plugin Name: Terminal Waiting System * Description: Terminal queue system with departure/arrival time controls, vehicle coding, roles (admin/driver/passenger), and privacy policy. * Version: 1.0.0 * Author: Your Name * License: GPL2+ */ if (!defined(‘ABSPATH’)) exit; const VERSION =…Continue reading

Untitled Snippet

function vqs_leaderboard_assets() { wp_enqueue_style( ‘vqs-leaderboard-css’, get_stylesheet_directory_uri() . ‘/vqs-leaderboard.css’, [], ‘1.0’ ); wp_enqueue_script( ‘vqs-leaderboard-js’, get_stylesheet_directory_uri() . ‘/vqs-leaderboard.js’, [], ‘1.0’, true ); } add_action(‘wp_enqueue_scripts’, ‘vqs_leaderboard_assets’); function vqs_leaderboard_shortcode() { ob_start(); ?> Monthly Leaderboard Race Top players — live updated 00d 00h 00m 00s…Continue reading

Duplicate Posts and Pages (copy)

// Add the duplicate link to action list for post_row_actions // for “post” and custom post types add_filter( ‘post_row_actions’, ‘rd_duplicate_post_link’, 10, 2 ); // for “page” post type add_filter( ‘page_row_actions’, ‘rd_duplicate_post_link’, 10, 2 ); function rd_duplicate_post_link( $actions, $post ) {…Continue reading

[DO NOT PUSH] AutomateWoo Function to Swap Subscription Product by SKU

if ( ! function_exists( ‘rd_swap_products_on_subscription’ ) ) { function rd_swap_products_on_subscription( $workflow ) { // Map old SKU => new SKU (simple products only; untested with variable/bundled) $sku_mapping = array( ‘9359769001492’ => ‘9359769002352’, // Nando’s Chicken Bowl ‘9359769002277’ => ‘9359769002369’, //…Continue reading

Cortex E-commerce Products SEO Meta

/** * Cortex E-commerce Products SEO Meta API v1.0 * REST Endpoints for WooCommerce Product & Product Category SEO Data * * For meta titles, descriptions, excerpts (short descriptions), focus keywords, * and social meta on WooCommerce products and product…Continue reading