/** * Pixelsz – Site Lock. Dit is ervoor bedoeld dat een website zonder overleg wordt verhuisd naar aan andere server. Hierdoor kunnen wij de licenties die gratis worden verstrekt bij een beheer en onderhoudscontract niet verwijderen voor de verhuizing…Continue reading
// 1. GESTIONE AZIONI AJAX add_action(‘wp_ajax_generate_kitchen_image’, ‘generate_kitchen_image_handler’); add_action(‘wp_ajax_nopriv_generate_kitchen_image’, ‘generate_kitchen_image_handler’); function generate_kitchen_image_handler() { // Pulizia iniziale per evitare testi sporchi nel JSON if (ob_get_length()) ob_clean(); header(‘Content-Type: application/json’); header(“Access-Control-Allow-Origin: *”); // — LA TUA CHIAVE API (METTILA QUI SOTTO) — $api_key =…Continue reading
add_action(‘init’, function() { // Rileva l’origine (es: il tuo blog su Blogger) $origin = $_SERVER[‘HTTP_ORIGIN’] ?? ”; if (!empty($origin)) { header(“Access-Control-Allow-Origin: $origin”); header(“Access-Control-Allow-Methods: POST, GET, OPTIONS”); header(“Access-Control-Allow-Headers: Content-Type, X-Requested-With”); header(“Access-Control-Allow-Credentials: true”); } if ($_SERVER[‘REQUEST_METHOD’] == ‘OPTIONS’) { status_header(200); exit; }…Continue reading
/** * WPCode Snippet: MU-Plugins Sync Engine * Description: Synchronizes MU-Plugins FROM /wp-content/mu-plugins/ TO wpcode_snippets_sync CPT * Location: Run Everywhere * Priority: 25 * * INSTALL ORDER: #6 – Install AFTER the WPCode sync system is fully set up *…Continue reading
remove_action(‘wp_ajax_genera_cucina_ai’, ‘gestisci_generazione_cucina’); remove_action(‘wp_ajax_nopriv_genera_cucina_ai’, ‘gestisci_generazione_cucina’); if ( ! function_exists( ‘gestisci_generazione_cucina’ ) ) { function gestisci_generazione_cucina() { if ( !session_id() ) { session_start(); } if ( isset($_SESSION[‘contatore_ai’]) && $_SESSION[‘contatore_ai’] >= 2 ) { wp_send_json_error([‘limit_reached’ => true]); } $stile = isset($_POST[‘style’]) ? sanitize_text_field($_POST[‘style’])…Continue reading
/** * 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
/** * WPCode Snippet: Download All Snippets Button * Description: Adds bulk download button to WPCode Snippets Sync admin page * Location: Admin Only * Priority: 20 * * INSTALL ORDER: #5 – Install after sync system is fully set…Continue reading
Monthly Leaderboard Race Top players — live updated 00d 00h 00m 00s S #2 $0.00Continue reading
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
// 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