Type: php
PHP: [AdminOnly]: List Customizations: Image + Slug
// // // ADMIN UI: SHOW FEATURED IMAGE COLUMN AND SLUG BELOW POST TITLE // Adds a thumbnail column to the posts and pages list tables in the admin for faster visual // identification. The post slug is displayed inline…Continue reading
PHP: [RunEverywhere]: ACF Improvements
// // // ADMIN UI: HIDE ACF FIELDS WITH CLASS u-dnone // Allows specific ACF fields to be conditionally hidden in the editor by assigning them the // u-dnone class via field settings. Useful for internal or deprecated fields that…Continue reading
PHP: [AdminOnly]: Perfomance + Accessibility + Security
// // // PERFORMANCE: REDUCE HEARTBEAT API INTERVAL IN ADMIN // WordPress fires Heartbeat requests every 15–60 seconds by default, generating continuous AJAX // load on the server. Reducing the interval to 120 seconds keeps auto-save and session detection //…Continue reading
PHP: [RunEverywhere]: Perfomance + Accessibility + Security
// // // SECURITY: DISABLE XML-RPC // XML-RPC is a legacy WordPress remote access protocol that is rarely needed on modern sites. // It is a common vector for brute-force and DDoS amplification attacks. This filter disables it // entirely,…Continue reading
PHP: [RunEverywhere]: Custom Admin Bar
add_action(‘wp_head’, function() { if (!is_admin_bar_showing()) return; ?>Continue reading
WWOF – Optimize Wholesale Order Form Bulk Adds by Deferring Cart Recalculation
/** * Suppress WWP’s per-item cart recalculation during Wholesale Order Form batch adds. * Defers to a single recalculation at the end of each batch request instead. * * Add to functions.php or a mu-plugin. * Requires: Wholesale Prices 2.2.8+,…Continue reading
single post
if ( ! isset( $GLOBALS[‘post_md_rec_shown’] ) ) { $GLOBALS[‘post_md_rec_shown’] = []; } $already_shown = &$GLOBALS[‘post_md_rec_shown’]; // Theme unique_ids einlesen und mit eigener Liste zusammenführen $unique_ids = get_query_var( ‘unique_ids’, [] ); $already_shown = array_unique( array_merge( $already_shown, $unique_ids ) ); $post =…Continue reading
filter – do shortcodes in snippets
add_filter( ‘wpcode_snippet_output_html’, ‘do_shortcode’ );Continue reading