Category: Admin
Untitled Snippet
Untitled Snippet
Guest Posts PRO PREMIUM SEO OUTREACH Guest Post Sites List Pick from 94 sites with real DA, DR and traffic numbers. Dofollow links, every niche, instant delivery, prices from $5. ✔ DofollowAll nichesInstant deliveryFrom $5 Search website Min DAAny30+40+50+60+ Min…Continue reading
WP HTML Minify
// WP HTML Minify / Kiri Vadivelu / 2026 add_action(‘template_redirect’, ‘wp_html_minify_start’); function wp_html_minify_start() { // Only minify for front-end HTML pages if (is_user_logged_in() || !is_singular() && !is_home() && !is_front_page()) return; ob_start(‘wp_html_minify_finish’); } function wp_html_minify_finish($html) { $original = $html; // Remove…Continue reading
Image Type Convert
// Image Type Convert / Kiri Vadivelu / 2026 add_filter( ‘wp_handle_upload’, ‘image_type_convert’ ); function image_type_convert( $upload ) { // Only process images if ( ! isset( $upload[‘type’] ) || ! in_array( $upload[‘type’], [ ‘image/jpeg’, ‘image/png’, ‘image/jpg’ ], true ) )…Continue reading
Image Quality Scale
// Image Quality Scale / Kiri Vadivelu / 2026 function image_quality_scale( $quality, $mime_type ) { if ( ‘image/webp’ === $mime_type ) { return 70; // Webp default 86 } return $quality; } add_filter( ‘wp_editor_set_quality’, ‘image_quality_scale’, 10, 2 );Continue reading
VSLC – Rastreo de Eventos GA4
SVG upload for WP Admin only
/** * Enable SVG uploads for Administrators only */ function enable_svg_uploads_for_admins($mime_types) { if (current_user_can(‘manage_options’)) { $mime_types[‘svg’] = ‘image/svg+xml’; $mime_types[‘svgz’] = ‘image/svg+xml’; } return $mime_types; } add_filter(‘upload_mimes’, ‘enable_svg_uploads_for_admins’); /** * Bypass secondary file-type check for SVG uploads by admins */ function…Continue reading
Wrap long links to prevent horizontal scrolling
/* Prevent long links and text from breaking mobile layouts */ /* Let long links and words wrap instead of pushing past the screen */ .entry-content, .wp-block-post-content, .comment-content { overflow-wrap: break-word; }Continue reading
Remove Admin Help
// Remove Admin Help / Kiri Vadivelu / 2026 add_action( ‘admin_head’, ‘remove_admin_help_tabs’ ); function remove_admin_help_tabs() { $screen = get_current_screen(); if ( $screen ) { $screen->remove_help_tabs(); } }Continue reading