function wpcode_snippet_replace_howdy( $wp_admin_bar ) { // Edit the line below to set what you want the admin bar to display intead of “Howdy,”. $new_howdy = ‘Welcome,’; $my_account = $wp_admin_bar->get_node( ‘my-account’ ); if ( ! isset( $my_account->title ) ) { return;…Continue reading
function avia_remove_wc_currency_symbol( $currency_symbol, $currency ) { $currency_symbol = ”; if ( is_cart() || is_checkout() || is_wc_endpoint_url(‘order-received’)) $currency_symbol = ‘€’; return $currency_symbol; } add_filter(‘woocommerce_currency_symbol’, ‘avia_remove_wc_currency_symbol’, 10, 2);Continue reading
document.addEventListener(‘om.Campaign.afterShow’, function (event) { if (‘{{id}}’ !== event.detail.Campaign.id) { return; } var closeAfter = 8000; // delay set at 8 seconds, edit time to your liking setTimeout(function () { event.detail.Campaign.startClose(); }, closeAfter); });Continue reading
add_action(‘admin_head’, function() { echo ‘ ‘; });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