0

I am using WordPress WooCommerce plugin as a store management. When I echo with <?php echo $order->get_order_number(); ?> I get #6453 as a result but I need only numbers so how do I strip out # from the number?

0

Just remove the first character of the string:

echo substr( $order->get_order_number() , 1 );

Not the answer you're looking for? Browse other questions tagged or ask your own question.