FlowMattic: Expand Workflow Description Box.
add_action(‘admin_head’, function() { echo ‘ ‘; });Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_action(‘admin_head’, function() { echo ‘ ‘; });Continue reading
/** * Zeigt den Cookie-Banner, wenn ein Element mit der Klasse ‘cmplz-show-banner’ geklickt wird. */ function cmplz_show_banner_on_click() { ?>Continue reading
function addEvent(event, selector, callback, context) { document.addEventListener(event, e => { if ( e.target.closest(selector) ) { callback(e); } }); } addEvent(‘click’, ‘.cmplz-show-banner’, function(){ document.querySelectorAll(‘.cmplz-manage-consent’).forEach(obj => { obj.click(); }); });Continue reading
/* Grundlegende Anpassungen für den Sprachumschalter */ .trp-language-switcher { all: unset !important; display: inline-block !important; position: relative !important; /* Verhindert Verschiebungen */ } /* Entfernt alle Padding-, Margin- und Rahmenwerte */ .trp-language-switcher a { all: unset !important; display: inline-block !important;…Continue reading
add_action(“breakdance_register_template_types_and_conditions”, function () { if (function_exists(“trp_get_languages”)) { $lang_list_full = trp_get_languages(); $lang_list = array(); foreach($lang_list_full as $key => $value) { $lang_list[] = $key; } \Breakdance\ConditionsAPI\register([ “supports” => [“element_display”, “templating”], “slug” => “TranslatePress4bd-condition”, // MUST BE UNIQUE “label” => “Language”, “category” =>…Continue reading
// 1️⃣ Admin Menüpunkt für die globale Einstellungsseite hinzufügen function my_custom_global_settings() { add_menu_page( ‘Globale Einstellungen’, // Seitentitel ‘Globale Daten’, // Menüpunkt-Name ‘manage_options’, // Berechtigung ‘global-settings’, // Slug ‘my_global_settings_page’, // Callback-Funktion ‘dashicons-admin-generic’, // Icon 80 // Position im Menü ); }…Continue reading
function disable_editor_for_selected_post_types() { $disabled_post_types = array(‘post’, ‘page’); // Liste der zu deaktivierenden Post-Typen foreach ($disabled_post_types as $post_type) { remove_post_type_support($post_type, ‘editor’); } } add_action(‘init’, ‘disable_editor_for_selected_post_types’);Continue reading
// Entfernt Google Fonts von WordPress und Breakdance function remove_google_fonts() { global $wp_styles; // Durch alle registrierten Styles iterieren und Google Fonts entfernen foreach ($wp_styles->registered as $handle => $style) { if (strpos($style->src, ‘fonts.googleapis.com’) !== false) { wp_dequeue_style($handle); wp_deregister_style($handle); } }…Continue reading
add_filter(“breakdance_register_font”, function ($font) { $isGoogleFont = !!$font[‘dependencies’][‘googleFonts’]; if ($isGoogleFont) { return false; } return $font; });Continue reading
add_filter(‘wwlc_allowed_user_roles’, function($allowed_roles) { $allowed_roles[] = ‘editor’; // Add your custom role here return $allowed_roles; });Continue reading