Hide WPFusion Branding

function white_label_wp_fusion( $translation, $text, $domain ) { if ( ‘wp-fusion’ === $domain ) { $translation = str_replace( ‘WP Fusion’, ‘CRM’, $translation ); } return $translation; } add_filter( ‘gettext’, ‘white_label_wp_fusion’, 10, 3 ); function wpf_whitelabel_crm( &$crm ) { $crm->name = ‘CRM’;…Continue reading

Woo SITE WIDE – Restaurant Hours + backend

/* Plugin Name: Restaurant Hours, Shop Control & Checkout Disable (Enhanced with Vacations, Custom Notices, Dynamic Data, Close Button, Time Until Open, Admin Timezone & Shipping/Payment Disable) Description: Gestiona los horarios del restaurante (con múltiples sesiones en español) y deshabilita…Continue reading

Untitled Snippet

function get_credit_report($atts) { $atts = shortcode_atts([ ‘username’ => ‘Nipho.Hlophe’, // API username ‘password’ => ‘kayNiph23’, // API password ‘id_number’ => ”, ‘first_name’ => ”, ‘last_name’ => ”, ], $atts); if (empty($atts[‘id_number’]) || empty($atts[‘first_name’]) || empty($atts[‘last_name’])) { return ‘Error: ID number,…Continue reading

ACF Members

/** * Register ACF fields for the ‘member’ post type. * Place this in your theme’s functions.php or a custom plugin. */ add_action(‘acf/init’, ‘ns_register_member_acf_fields’); function ns_register_member_acf_fields() { // Only proceed if ACF is active. if ( ! function_exists( ‘acf_add_local_field_group’ )…Continue reading

CPT Members

/** * Plugin Name: NS Register Member CPT & Create Member Post * Description: Registers a ‘member’ custom post type and creates a Member post from Gravity Forms submission, using the form’s generated Member ID. * Author: Your Name *…Continue reading

custom-shortcode-ld-dynamic-course-button

function ld_course_button_auto_shortcode() { if (!is_singular(‘sfwd-courses’)) return ”; // Only show on course pages $course_id = get_the_ID(); $user_id = get_current_user_id(); $is_enrolled = sfwd_lms_has_access($course_id, $user_id); $course_url = get_permalink($course_id); // Get first lesson URL $lessons = learndash_get_course_lessons_list($course_id); $first_lesson_url = !empty($lessons[0][‘permalink’]) ? $lessons[0][‘permalink’] :…Continue reading