woocommerce_moip_icon_mastercard

The WooCommerce Moip woocommerce moip icon mastercard hook.

Description

apply_filters( 'woocommerce_moip_icon_mastercard', $plugins_url ); 

Parameters (1)

0. $plugins_url
The plugins url.

Usage

To run the hook, copy the example below.
  1. $plugins_url = apply_filters( 'woocommerce_moip_icon_mastercard', $plugins_url ); 
  2.  
  3. if ( !empty( $plugins_url ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the woocommerce_moip_icon_mastercard callback 
  2. function filter_woocommerce_moip_icon_mastercard( $plugins_url ) { 
  3. // make filter magic happen here... 
  4. return $plugins_url
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'woocommerce_moip_icon_mastercard', 'filter_woocommerce_moip_icon_mastercard', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'woocommerce_moip_icon_mastercard', 'filter_woocommerce_moip_icon_mastercard', 10, 1 ); 

Defined (10)

The filter is defined in the following location(s).

/templates/transparent-checkout.php  
  1. <?php echo sprintf( '<img src="%1$s" alt="%2$s" title="%2$s" />', apply_filters( 'woocommerce_moip_icon_mastercard', plugins_url( 'assets/images/mastercard.png', plugin_dir_path( __FILE__ ) ) ), __( 'Master Card', 'woocommerce-moip' ) ); ?> 
  1. <?php echo sprintf( '<img src="%1$s" alt="%2$s" title="%2$s" />', apply_filters( 'woocommerce_moip_icon_mastercard', plugins_url( 'assets/images/visa.png', plugin_dir_path( __FILE__ ) ) ), __( 'Visa', 'woocommerce-moip' ) ); ?> 
  1. <?php echo sprintf( '<img src="%1$s" alt="%2$s" title="%2$s" />', apply_filters( 'woocommerce_moip_icon_mastercard', plugins_url( 'assets/images/americanexpress.png', plugin_dir_path( __FILE__ ) ) ), __( 'American Express', 'woocommerce-moip' ) ); ?> 
  1. <?php echo sprintf( '<img src="%1$s" alt="%2$s" title="%2$s" />', apply_filters( 'woocommerce_moip_icon_mastercard', plugins_url( 'assets/images/diners.png', plugin_dir_path( __FILE__ ) ) ), __( 'Diners', 'woocommerce-moip' ) ); ?> 
  1. <?php echo sprintf( '<img src="%1$s" alt="%2$s" title="%2$s" />', apply_filters( 'woocommerce_moip_icon_mastercard', plugins_url( 'assets/images/hipercard.png', plugin_dir_path( __FILE__ ) ) ), __( 'Hipercard', 'woocommerce-moip' ) ); ?> 
  1. <?php echo sprintf( '<img src="%1$s" alt="%2$s" title="%2$s" />', apply_filters( 'woocommerce_moip_icon_mastercard', plugins_url( 'assets/images/bancodobrasil.png', plugin_dir_path( __FILE__ ) ) ), __( 'Banco do Brasil', 'woocommerce-moip' ) ); ?> 
  1. <?php echo sprintf( '<img src="%1$s" alt="%2$s" title="%2$s" />', apply_filters( 'woocommerce_moip_icon_mastercard', plugins_url( 'assets/images/bradesco.png', plugin_dir_path( __FILE__ ) ) ), __( 'Bradesco', 'woocommerce-moip' ) ); ?> 
  1. <?php echo sprintf( '<img src="%1$s" alt="%2$s" title="%2$s" />', apply_filters( 'woocommerce_moip_icon_mastercard', plugins_url( 'assets/images/banrisul.png', plugin_dir_path( __FILE__ ) ) ), __( 'Banrisul', 'woocommerce-moip' ) ); ?> 
  1. <?php echo sprintf( '<img src="%1$s" alt="%2$s" title="%2$s" />', apply_filters( 'woocommerce_moip_icon_mastercard', plugins_url( 'assets/images/itau.png', plugin_dir_path( __FILE__ ) ) ), __( 'Itau', 'woocommerce-moip' ) ); ?> 
  1. <?php echo sprintf( '<img src="%1$s" alt="%2$s" title="%2$s" />', apply_filters( 'woocommerce_moip_icon_mastercard', plugins_url( 'assets/images/boleto.png', plugin_dir_path( __FILE__ ) ) ), __( 'Billet Banking', 'woocommerce-moip' ) ); ?>