MemberPress: Disable Comments for Courses, Lessons, Quizzes, and Assignments
The code snippet will disable comments on all MemberPress Courses custom post types: courses, lessons, quizzes,…
MemberPress: Shortcode To Display Content for Parent Accounts and Exclude Subaccounts
The code snippet registers a new shortcode: [mepr_exclude_sub_accounts]...[/mepr_exclude_sub_accounts]. The content added to this shortcode will be…
Lazy load YouTube videos in WordPress with Shortcode
Lazy load YouTube videos in WordPress with Shortcode
Change Jump links to buttons
Make the "jump to recipe" and "print recipe" links look like buttons at the top of…
Download Column Thumbnail
Render a new post column featuring the download thumbnail.
Add User to RCP Subscription on Purchase
Add customer to an RCP subscription level when they purchase a specific product.
mobile sticky menu chatgpt html
Home Shop Cart Account
Explicit Fixed Width and Height
add_filter( 'the_content', 'add_image_dimensions' ); function add_image_dimensions( $content ) { preg_match_all( '/]+>/i', $content, $images); if (count($images) <…
Gtag
Analytics
Gravity Forms: Add Custom CSS Buttons to GravityWP CSS Ready Classes Plugin
Add custom CSS: quick buttons and accordion at the top of the GravityWP - CSS Selector…
run on payment page
if payment page, send email
Untitled Snippet
function vqs_leaderboard_assets() { wp_enqueue_style( 'vqs-leaderboard-css', get_stylesheet_directory_uri() . '/vqs-leaderboard.css', [], '1.0' ); wp_enqueue_script( 'vqs-leaderboard-js', get_stylesheet_directory_uri() . '/vqs-leaderboard.js',…
Paystack Split Payments Integration with WC Vendors — Creating the Split Configuration
public function process_split_payment( $order ) { $vendors_due = WCV_Vendors::get_vendor_dues_from_order( $order, false ); $sub_accounts = array(); foreach…
Pre-approval Emails
Email the admin and customer when a pre-approval payment has been made.