add_filter( ‘mpcs_classroom_style_handles’, function( $allowed_handles ) { $allowed_handles[] = ‘vjscss’; $allowed_handles[] = ‘ccpsacss’; return $allowed_handles; });Continue reading
/** * MemberPress – Generate Invoice Numbers for Zero Amount Transactions * * Creates invoice numbers for transactions with zero amounts to maintain * accounting consistency. */ function mepr_create_invoice_number( $event ) { // Fetch MemberPress options $mepr_options = MeprOptions::fetch(); //…Continue reading
/** * Plugin Name: Hide Author and Date * Plugin URI: * Description: A simple plugin to hide the author and publish date on the front end. * Version: 1.0.1 * Author: * License: GPL2 */ // Make sure we…Continue reading
/** * MemberPress – Exclude Specific Custom Fields from Signup Forms * * This code hides selected custom fields on MemberPress registration forms * when a specific URL parameter is present. */ add_filter( ‘mepr_render_custom_fields’, function( $fields ) { global $post;…Continue reading
/** * MemberPress – Customize Unauthorized Messages By User Status * * Displays different unauthorized messages based on whether the user is logged in * and if they have any active subscriptions. */ add_filter( ‘mepr-unauthorized-message’, function( $message ) { if…Continue reading
$post_id = get_the_ID(); if (!$post_id) return; // Exit if no post ID // Basic attorney info $attorney_data = []; // Basic Information with null checks $attorney_data = [ ‘name’ => get_field(‘attorney_name’, $post_id) ?: ”, ‘honorificSuffix’ => get_field(‘honorificSuffix’, $post_id) ?: ”,…Continue reading
$post_id = get_the_ID(); if (!$post_id) return; // Exit if no post ID // Basic attorney info $attorney_data = []; // Basic Information with null checks $attorney_data = [ ‘name’ => get_field(‘attorney_name’, $post_id) ?: ”, ‘honorificSuffix’ => get_field(‘honorificSuffix’, $post_id) ?: ”,…Continue reading
// Define the dictionary of lead sources. $tripleseat_lead_sources = [ 112129 => [‘id’ => 112129,’name’ => ‘Web Summer Camp’], 112130 => [‘id’ => 112130,’name’ => ‘Web Lead Field Trip’], 112131 => [‘id’ => 112131,’name’ => ‘Web Lead League’], 113130 =>…Continue reading
function ld_currently_studying_widget() { if ( ! is_user_logged_in() ) { return ‘ Log in to continue your courses. ‘; } $user_id = get_current_user_id(); $latest_course_id = learndash_get_last_active_course( $user_id ); // If no course started, skip output if ( ! $latest_course_id ) {…Continue reading