Set a Custom Email Header (copy)

/* Set a Custom Email Header * * Original doc: https://wpmailsmtp.com/docs/setting-a-custom-email-header/ */ function wpmsmtp_custom_mail_header( $args ) { if ( ! is_array( $args[ ‘headers’ ] ) ) { $args[ ‘headers’ ] = explode( “n”, str_replace( “rn”, “n”, $args[ ‘headers’ ] )…Continue reading

AI Engine – Racovian Framework Integration

add_filter( ‘mwai_chatbot_system_string’, function ( $system_string, $chatbot ) { // Only target your specific Research Forum chatbot if ( $chatbot->get_id() === ‘vq6zg0’ || $chatbot->get_name() === ‘Research Forum’ ) { $racovian_framework = “\n\nHISTORICAL REFERENCE DATA (RACOVIAN CATECHISM 1605):\n” . “When asked about…Continue reading

WP Fusion – Skip Inactive Subscription Field Sync When Active Subscription Exists

add_filter( ‘wpf_woocommerce_subscription_sync_fields’, ‘rd_wpf_skip_inactive_subscription_sync_when_customer_has_active_subscription’, 10, 2 ); function rd_wpf_skip_inactive_subscription_sync_when_customer_has_active_subscription( $update_data, $subscription ) { if ( ! is_object( $subscription ) || ! method_exists( $subscription, ‘get_status’ ) || ! method_exists( $subscription, ‘get_user_id’ ) || ! method_exists( $subscription, ‘get_id’ ) ) { return $update_data;…Continue reading