Hide the ‘Screen Options’ Tab on admin bar
// Hide the admin ‘Screen Options’ tab add_filter(‘screen_options_show_screen’, ‘__return_false’);Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
// Hide the admin ‘Screen Options’ tab add_filter(‘screen_options_show_screen’, ‘__return_false’);Continue reading
add_filter( ‘login_head’, function () { // Update the line below with the URL to your own logo. // Adjust the Width & Height accordingly. $custom_logo = ‘https://qcs-ghana.stromstadafroshop.se/wp-content/uploads/2024/04/logo-email-header.webp’; $logo_width = 100; $logo_height = 100; printf( ‘ ‘, $custom_logo, $logo_width, $logo_height );…Continue reading
/** * Convert Uploaded Images to WebP Format * * This snippet converts uploaded images (JPEG, PNG, GIF) to WebP format * automatically in WordPress. Ideal for use in a theme’s functions.php file, * or with plugins like Code Snippets…Continue reading
(function($) { $(document).ready(function() { // Set defaults US, TX $(‘#mepr_signup_form #mepr-address-country’).val(‘US’).change(); $(‘#mepr_signup_form #mepr-address-state’).val(‘TX’).change(); }); })(jQuery);Continue reading
.simpay-styled .simpay-form-control .simpay-btn:not(.stripe-button-el) { background-color: #0b749d; } .simpay-styled .simpay-form-control .simpay-btn:not(.stripe-button-el):focus, .simpay-styled .simpay-form-control .simpay-btn:not(.stripe-button-el):hover { background-color: #086285; }Continue reading
add_filter( ‘charitable_permalink_donation_receipt_page’, ‘example_charitable_permalink_donation_receipt’, 999, 2 ); function example_charitable_permalink_donation_receipt( $value, $args ) { // The $value is the URL of the donation receipt page or whatever URL you want the user to go after a successful donation. // The $args array…Continue reading
add_filter( ‘wpcode_smart_tags’, function( $tags ) { $tags[‘custom’] = array( ‘label’ => ‘Custom’, ‘tags’ => array( ‘permalink’ => array( ‘label’ => ‘Permalink’, ‘function’ => ‘wpcode_custom_permalink_tag’, ), ), ); return $tags; } ); function wpcode_custom_permalink_tag() { // Replace custom_field_tag below with the…Continue reading