shopp_order_customer_phone_url

filters the phone number url on the customer contact metabox in the order manager admin.

add_filter( 'shopp_order_customer_phone_url', [callback] )

@param url $phone phone number url on the customer contact metabox in the order manager admin.

Description

filters the phone number url on the customer contact metabox in the order manager admin.

Example

// register filter callback
add_filter('shopp_order_customer_phone_url', 'shopp_order_customer_phone_url_filter');

// create filter function
function shopp_order_customer_phone_url_filter( $url ) {
    // format phone number as (###) ###-####
    return preg_replace("/.*?([0-9]{3})([0-9]{3})([0-9]{4}).*/",
    '<a href="callto:$1$2$3">($1) $2-$3</a>',
    $url )
}

See Also

You must be logged in to post a comment.

© Ingenesis Limited. Shopp™ is a registered trademark of Ingenesis Limited.

Skip to toolbar