/* Default Wholesale Leads list to sort by registration date (newest first) */ add_action( ‘pre_user_query’, function( $user_query ) { if ( ! defined( ‘REST_REQUEST’ ) || ! REST_REQUEST ) { return; } if ( false === strpos( $_SERVER[‘REQUEST_URI’] ?? ”,…Continue reading
// Show retail reference price including tax for specific wholesale roles only // Requires: WWPP Settings > Tax > “Tax Display on Wholesale Price” = “Excluding Tax” add_filter( ‘wwp_product_original_price’, function( $price_html, $wholesale_price, $product_price, $product, $user_wholesale_role ) { $target_roles = array(…Continue reading
/* 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
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