Removing the Redux Demo Mode Notice
Copyright © author Link: https://devs.redux.io/guides/basics/removing-demo-mode-notice.html The Redux Framework plugin ships with a sample config. This permits…
Custom Separator for Data Manipulation
The Data Manipulation default separator is a space. You can change this to a custom separator…
Javascript Org Chart
window.onload = function() { // Initial organizational data structure let orgData = { id: '1', name:…
Omdirigera prenumeranter till startsidan efter inloggning
/** * 1) Omdirigera prenumeranter till startsidan efter inloggning */ add_filter( 'login_redirect', function( $redirect_to, $requested_redirect_to, $user…
Dölj admin-baren för prenumeranter
/** * 2) Dölj admin-baren för prenumeranter */ add_filter( 'show_admin_bar', function( $show ) { if (…
Hindra åtkomst till /wp-admin för prenumeranter
/** * Hindra åtkomst till /wp-admin för prenumeranter */ add_action( 'admin_init', function() { if ( is_user_logged_in()…
eKrea
E-commerce et création
Google Tag Manager
That GTM embed code I gave you is a JavaScript snippet wrapped in HTML tags, and…
Limit Revisions
/** * Limit WordPress revisions to 5 for all post types. */ add_filter('wp_revisions_to_keep', function ($num, $post)…
Font Weight correction for Menu Subcategories
.mc_vertical_menu h3 { font-weight: 600 !important; }
Disabling the Admin Bar for Non-Admin Users
add_action('after_setup_theme', 'remove_admin_bar'); function remove_admin_bar() { if (!current_user_can('administrator') && !is_admin()) { show_admin_bar(false); } }
Changing the WordPress Login Logo URL
function custom_login_logo_url() { return home_url(); // Or your desired URL } add_filter( 'login_headerurl', 'custom_login_logo_url' );