MemberPress: Override VAT Tax for the UK
By default, UK is included in the list of VAT countries in MemberPress. Thus, when VAT…
rearrange shipping options
Login to cpanel. Choose “File Manager” Navigate to public_html>wp-includes>functions.php and select “Edit” Paste in the contents…
rearrange shipping options
Login to cpanel. Choose “File Manager” Navigate to public_html>wp-includes>functions.php and select “Edit” Paste in the contents…
MemberPress: Restrict Purchase of a Specific Membership Based on Existing Subscriptions
This code snippet restricts the purchase of a specified MemberPress membership (restricted membership), based on a…
MemebrPress: Send Membership-Specific Welcome Email Only When Transaction Is Completed
The code snippet will allow the membership-specific welcome email to be triggered only following the successful…
MemebrPress: Send MemberPress Welcome Email Only When Transaction Is Completed
The code snippet will allow the global welcome email to be triggered only following the successful…
Create An Admin - SQL Query
Create and Add an Admin User With MySQL in WordPress https://wp-staging.com/how-to-create-an-admin-user-with-mysql-in-wordpress/#Create_WordPress_Admin_User_SQL_Query
MemberPress: Code Blocks Pro - Load All Currently Enqueued Styles In the Courses ReadyLaunch Template
By default, if the ReadyLaunch Courses/Lessons template is enabled, the MemberPress Courses add-on won’t enqueue 3rd-party…
Display Roster Entry
/** Display Roster Entry **/ // FOR DEBUGGING ONLY //$data = serialize(array("Red", "Green", "Blue")); //echo $data…
Enqueue Child Theme's CSS & Additional CSS in WordPress Editor
/* Enqueue Child Theme style.css to editor */ add_filter('block_editor_settings_all', function($editor_settings) { // Get the URL of…
Change site url
add_action('init', 'update_site_url_once'); function update_site_url_once() { if (get_option('home') !== 'https://amazingmarvin.com/blog/') { update_option('siteurl', 'https://amazingmarvin.com/blog/'); update_option('home', 'https://amazingmarvin.com/blog/'); } }
Custom Availability Date for Products
/** * Availability Date Functionality * * Adds a custom availability date field to WooCommerce products…
Display Page/Post ID
This snippet can be used to display Page/Post ID in the Admin Dashboard. Adds option to…