Category: Admin
Replace WP Logo and the default ‘logo’ link
add_filter(‘login_head’, function () { $custom_logo = ‘https://i.imgur.com/0qxSpsL.png’; // Replace the image url $logo_width = 200; // Replace the width and height accordingly $logo_height = 80; echo ‘ ‘; }, 990); add_filter( ‘login_headerurl’, function () { return ‘https://example.com’; // Replace the…Continue reading
to add WooCommerce WhatsApp Product Enquiry. NO API Used. (copy)
/* Plugin Name: SuperWp WhatsApp Product Enquiry Description: Adds a WhatsApp enquiry button to WooCommerce product pages with customizable options, custom messages, and phone number input. Version: 1.0.3 Author: Thiarara SuperWP */ // Add WooCommerce Submenu for WhatsApp Enquiry Settings…Continue reading
Home Page
{ “@context”: “https://schema.org”, “@type”: “LocalBusiness”, “name”: “Angela Luna Therapy”, “url”: “https://angelalunatherapy.com/”, “logo”: “https://angelalunatherapy.com/wp-content/uploads/2023/11/LOGO-Angela_Luna.png”, “image”: “https://angelalunatherapy.com/wp-content/uploads/2023/11/LOGO-Angela_Luna.png”, “description”: “Holistic trauma therapy specializing in Art Therapy, EMDR, Brainspotting, and Soul Collage.”, “address”: [ { “@type”: “PostalAddress”, “streetAddress”: “1614 Woolsey St, Suite D”, “addressLocality”:…Continue reading
Untitled Snippet
Custom Separator
function getSeparator() { return window.location.href.includes(‘?’) ? ‘&’ : ‘?’; } document.addEventListener(‘om.Dtr.init’, function (event) { const separator = getSeparator(); event.detail.Dtr.setCustomVariable(‘separator’, separator); });Continue reading
MemberPress: Add Custom Field Date to Members Table
function custom_admin_members_col($cols) { $cols[‘business_name’] = __(‘Business Name’, ‘memberpress’); // Replace the business_name with the name of the actual custom field key & replace the dummy Business Name text with the name of the actual custom field return $cols; } add_filter(‘mepr_admin_members_cols’,…Continue reading
Sample Email Template Tag (copy)
/** * Register a custom email tag for the file name. * * @return void */ function prefix_add_file_name_email_tag() { edd_add_email_tag( ‘file_name’, // Tag ‘Displays the file name of the purchased download file.’, // Description ‘prefix_render_file_name_email_tag’, // Callback function ‘File Name’,…Continue reading
Disable AIOSEO redirect suggestions when trashing posts
add_filter( ‘aioseo_redirects_disable_trashed_posts_suggestions’, ‘__return_true’ );Continue reading
Disable Admin Notices WordPress
/** * Disable Admin Notices WordPress * Description: Completely removes all admin notices from the WordPress dashboard, * including core WordPress notices and those added by plugins and themes. * @author Faisal Ahammad */ /** * Remove all notice actions…Continue reading