shopp_order_customer_wpuser_url

filters the WordPress user profile url associated with the customer on the current order in the Shopp Order Manager.

add_filter( 'shopp_order_customer_wpuser_url', [callback] )

@param string $url the WordPress user profile url associated with the customer on the current order in the Shopp Order Manager.

Description

filters the WordPress user profile url associated with the customer on the current order in the Shopp Order Manager.

Example

// register filter callback
add_filter('shopp_order_customer_wpuser_url', 'shopp_order_customer_wpuser_url_fltr');

// create filter function
function shopp_order_customer_wpuser_url_fltr( $url ) {
    // if the current user can't edit the user
    // hide the url
    if ( ! current_user_can('edit_users') ) {
        $url = '';
    }
    return $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