wcvendors_dashboard_google_maps_link

Description

apply_filters( 'wcvendors_dashboard_google_maps_link', ''. esc_html( preg_replace( '#<brs*/?>#i', ', ', $order->get_formatted_shipping_address() ) ) .'' )

Parameters ( 1 ) ( string )

Usage Examples

To run the filter, copy this sample

$str = apply_filters( 'wcvendors_dashboard_google_maps_link', ''. esc_html( preg_replace( '#<brs*/?>#i', ', ', $order->get_formatted_shipping_address() ) ) .'' );
  if ( ! empty( $str ) ) {

    // what has been modified...

}

To make a callback function, copy this sample

// the filter wcvendors_dashboard_google_maps_link callback
function my_filter_function( $param )  {
  // do your thing here :-) ... 

  return $str;
}
add_filter( 'wcvendors_dashboard_google_maps_link' , 'my_filter_function', 10, 1 );

To remove the filter, copy this sample

 //remove the filter
remove_filter( 'wcvendors_dashboard_google_maps_link', 'my_filter_function', 10, 1 );

Defined

This filter is defined in the following source file(s)

  • wc-vendors/templates/dashboard/orders.php line 82
    #i', ', ', $order->get_formatted_shipping_address() ) ) ) . '&z=16' ) . '">'. esc_html( preg_replace( '#<brs*/?>#i', ', ', $order->get_formatted_shipping_address() ) ) .'' ); ?>

filters

Updated on January 12, 2017

Was this article helpful?