add_action( 'woocommerce_before_single_product_summary' , 'add_custom_text_before_product_title', 5 ); function add_custom_text_before_product_title() { echo '<span>My Custom Text</span>'; }