PHP - Custom color dashboard (menu et barre du haut)
function custom_admin_style() { echo ''; } add_action('admin_head', 'custom_admin_style');
PHP - Custom login
// === CUSTOM LOGIN PAGE === add_action('login_enqueue_scripts', function () { echo ' '; }); // ===…
Redirect Lost Password to a Custom Page
By default, some plugins redirect the “Lost Password” link to the WordPress admin panel. This snippet…
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:…
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()…
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' );
master home page final
Shop Doggyography Blog Contact More than a collar. A nightly transformation. An expression of identity. A…
Logged in User Drop Down Menu
Along with the Avatar and User Shortcode Snippet, this can display a nice logged in User…