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' );
Head MAster
Shop Doggyography Training Contact
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…
Mapping WPForms Checkbox Values to ACF Checkbox Fields
This snippet uses the wpforms_post_submissions_process action hook to dynamically map WPForms checkbox submissions to ACF checkbox…
How to Programmatically Attach a File to Email Notifications
This code snippet uses the wpforms_emails_mailer_get_attachments filter to attach files to email notifications.
Number slider validation for single page forms
This snippet uses the wpforms_process_validate_number-slider action to check the slider value after submission.
Number slider validation for multi page forms
This snippet outputs a small script that listens for the wpformsBeforePageChange event and stops the page…
Conditionally disable Cloudflare Turnstile
This code snippet turns off the CAPTCHA setting in form data so Turnstile is not initialized…