/** * Pixelsz – MU Plugins Monitor versie 2.1.3 * * Wijzigingen t.o.v. 2.0: * – Geen mail als issues identiek zijn aan de vorige scan * – Log bewaart maximaal 7 dagen gewone entries; meldingen met issues blijven altijd…Continue reading
/** * Set featured image from the first /uploads/ image found in post content * for posts that do not already have a valid featured image. * * Usage: * Run batch: * /wp-admin/?idxc_run_featured_image_fix_batch=1&batch_size=50 * * Reset checked flag: *…Continue reading
if ( ! defined( ‘ABSPATH’ ) ) { return; } if ( ! function_exists( ‘rd_countdown_target_datetime’ ) ) { function rd_countdown_target_datetime( $atts = array() ) { $atts = is_array( $atts ) ? $atts : array(); $weekday_raw = isset( $atts[‘weekday’] ) ?…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
/** * PN FluentCommunity Auto-Delete Diagnostics * No debug.log required */ if (!defined(‘ABSPATH’)) { exit; } /* |————————————————————————– | Enable main snippet internal logs too |————————————————————————– */ add_filter(‘pn_fcom_enable_debug_log’, ‘__return_true’); /* |————————————————————————– | Constants |————————————————————————– */ if (!defined(‘PN_FCOM_DIAG_OPTION’)) { define(‘PN_FCOM_DIAG_OPTION’, ‘pn_fcom_diag_entries’);…Continue reading
function youtube_dashboard() { $api_key = “AIzaSyBzzf22Vs5sMf1eoCuhN3-0Qtnj0EKu7Bk”; $channel_id = “102319916649-hmjdaecid7f96ql384nd80ie8mn13fjj.apps.googleusercontent.com”; // ganti channel kamu $url = “https://www.googleapis.com/youtube/v3/channels?part=snippet,statistics&id=$channel_id&key=$api_key”; $response = wp_remote_get($url); if (is_wp_error($response)) { return “Error ambil data”; } $body = json_decode(wp_remote_retrieve_body($response), true); $data = $body[‘items’][0]; $title = $data[‘snippet’][‘title’]; $subs = $data[‘statistics’][‘subscriberCount’];…Continue reading