MemberPress: Custom Course Overview Shortcode for Better Preview

use memberpress\courses\models as models; // Register classroom Styles function wpdocs_register_plugin_styles() { wp_enqueue_style( ‘mpcs-fontello-styles’, plugins_url( ‘memberpress-courses/public/fonts/fontello/css/mp-courses.css’ ) ); wp_enqueue_style( ‘mpcs-progress’, plugins_url( ‘memberpress-courses/public/css/progress.css’ ) ); } add_action( ‘wp_enqueue_scripts’, ‘wpdocs_register_plugin_styles’ ); // The “[mepr-mpcs-course-overview]” shortcode add_shortcode( ‘mepr-mpcs-course-overview’, function( $attributes ) { $content =…Continue reading

SEO Ready™ – ACF: Attorney Snippet (NLF)

$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

SEO Ready™ – ACF: Attorney Snippet

$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

Lead – Elementor Form to Tripleseat API

// 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