Type: php
Disable Inspector Tabs
add_filter( ‘block_editor_settings_all’, function ( $settings ) { if ( ! isset( $settings[‘blockInspectorTabs’] ) ) { $settings[‘blockInspectorTabs’] = array(); } $settings[‘blockInspectorTabs’] = array_merge( $settings[ ‘blockInspectorTabs’ ], array( ‘default’ => false, // Disables for all blocks. ), ); return $settings; } );Continue reading
User Redirect From GoBrunch Room when inactive
User Cookie Script
CIEP hide MCE text tab
function ciep_hide_mce_text_tab($settings) { $settings[‘quicktags’] = false; return $settings; } add_filter(‘wp_editor_settings’, ‘ciep_hide_mce_text_tab’);Continue reading
Hide text tab in RTF editor
function CIEP_editor_settings($settings) { $settings[‘quicktags’] = false; return $settings; } add_filter(‘wp_editor_settings’, ‘CIEP_editor_settings’);Continue reading
Footer menu
JavaScript
PHP: Backend Logic for Gallery Rendering – v2
// AJAX action to handle gallery rendering add_action(‘wp_ajax_render_user_gallery’, ‘handle_render_user_gallery’); add_action(‘wp_ajax_nopriv_render_user_gallery’, ‘handle_render_user_gallery’); /** * Handle AJAX request to render the user gallery. */ function handle_render_user_gallery() { $gallery_html = get_user_gallery_html(); // Return a JSON response if (!empty($gallery_html)) { wp_send_json_success([‘html’ => $gallery_html]); }…Continue reading
Gravity Forms Address Autocomplete: Use Single Line Text field as Autocomplete Input
/** * Gravity Perks // Address Autocomplete // Use Single Line Text field as Autocomplete Input * * Use a Single Line Text field as autocomplete input and populate the Single Line Text field with the full address. * Used…Continue reading