/** * FFF – Captain Custom Edit Form * CLEAN FULL REWRITE * Use on page: [fff_captain_edit_form] */ if (!function_exists(‘fff_captain_get_request_listing_id’)) { function fff_captain_get_request_listing_id() { if (!empty($_GET[‘listing_id’])) { return absint($_GET[‘listing_id’]); } if (!empty($_GET[‘listing’])) { return absint($_GET[‘listing’]); } return 0; } }…Continue reading
/* ================================ NIRMAKO – Navigation + Mobile Hamburger (CSS only) Paste in: Elementor > Site Settings > Custom CSS or WP > Customize > Additional CSS ================================ */ /* 1) Make header/nav always clickable above hero/video/sections */ header, .site-header, .elementor-location-header,…Continue reading
/** * NIRMAKO — VideoObject Schema Injector * Protocol OA | Place in functions.php or Code Snippets plugin * ───────────────────────────────────────────────────────────── */ // ─── 1. Page → Video map ────────────────────────────────────────────────────── // format: ‘page-path’ => [ ‘videoId’, ‘uploadDate (from YT Studio)’, ‘duration…Continue reading
/** * Litopia Social Planner — Complete WPCode Snippet * Shortcode: [litopia_my_social_planner_dashboard] * * Fully self-contained — creates its own DB tables on first run. * The plugin is NOT required. If the plugin’s tables already exist, they * are…Continue reading
/** * 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
/** * Plugin Name: DF Divi 5 Alpha Order (Frontend Safe) * Description: Alphabetically sorts Divi 5 Blog Module items (including selected pages) using CSS ID. * Version: 2.0.0 * Author: David Frank */ if (!defined(‘ABSPATH’)) exit; add_action(‘wp_footer’, function ()…Continue reading
// ========================================== // 1. 建立「FluentCRM ➔ Teachable 監視器」面板 // ========================================== add_action(‘admin_notices’, ‘display_fc_tea_monitor_panel’); function display_fc_tea_monitor_panel() { $log = get_option(‘fc_tea_debug_log’, ‘目前尚未有任何同步紀錄。’); if (isset($_GET[‘clear_fc_tea_log’])) { update_option(‘fc_tea_debug_log’, ”); $log = ‘紀錄已清空,等待下一次測試…’; } echo ‘ ‘; echo ‘ 🎓 FluentCRM ➔ Teachable 雙向同步監視器 清空紀錄 ‘;…Continue reading
/** * This will fire at the very end of a (successful) form entry. * * @link https://wpforms.com/developers/wpforms_process_complete/ * * @param array $fields Sanitized entry field values/properties. * @param array $entry Original $_POST global. * @param array $form_data Form data…Continue reading
add_action(‘pre_get_posts’, function($query) { if (!is_admin() && $query->is_main_query() && is_archive() && get_theme_mod(‘universal_toggle_post_badge’, ‘true’)) { $sticky_posts = get_option(‘sticky_posts’); if (!empty($sticky_posts)) { add_filter(‘posts_orderby’, function($orderby, $query) use ($sticky_posts) { global $wpdb; $sticky_list = implode(‘,’, array_map(‘intval’, $sticky_posts)); return “FIELD({$wpdb->posts}.ID, {$sticky_list}) DESC, {$orderby}”; }, 10, 2);…Continue reading