// Sets permissions for site admins to edit users function artprize_admin_users_caps( $caps, $cap, $user_id, $args ) { foreach ( $caps as $key => $capability ) { if ( $capability != ‘do_not_allow’ ) { continue; } switch ( $cap ) {…Continue reading
/** * KIC Universal Diagnostic Tool – PASSIVE VERSION * * A comprehensive diagnostic tool for debugging KIC Enterprise systems * SAFE TO KEEP ACTIVE PERMANENTLY – Does NOTHING until you access it! * * HOW IT WORKS: * –…Continue reading
/** * WPCode Snippet: WPCode Snippets Sync Engine * Description: Synchronizes WPCode snippets FROM wpcode CPT TO wpcode_snippets_sync CPT * Location: Run Everywhere * Priority: 20 * * INSTALL ORDER: #3 – Install after ACF fields are registered * *…Continue reading
/** * WPCode Snippet: WPCode Snippets Sync CPT Registration * Description: Registers shadow CPT for syncing WPCode snippets to REST API * Location: Run Everywhere * Priority: 5 * * INSTALL ORDER: #1 – Install this first * * IMPORTANT:…Continue reading
/** * WPCode Snippet: ACF Fields for WPCode Snippets Sync * Description: Registers ACF fields to store WPCode snippet data in sync CPT * Location: Run Everywhere * Priority: 10 * * INSTALL ORDER: #2 – Install after CPT registration,…Continue reading
/** * WPCode Snippet: REST API Enhancements for WPCode Snippets Sync * Description: Exposes wpcode_snippets_sync CPT fields via REST API for WhaleSync * Location: Run Everywhere * Priority: 15 * Version: 1.2.0 * * INSTALL ORDER: #4 – Install last,…Continue reading
/** * After enabling this snippet, go to Settings > Permalinks and click “Save Changes” * Configure the $enabled_post_types array to specify which post types should support .md URLs */ $enabled_post_types = [ ‘post’, ‘page’ ]; // Add rewrite rule…Continue reading
/** * File Size Analyzer for WordPress * Displays all files in WordPress installation sorted by size * Paste this into WPCode as a PHP snippet */ // Only allow administrators to view this if (!current_user_can(‘manage_options’)) { wp_die(‘You do not…Continue reading