woocommerce_accepted_payment_methods

The WooCommerce Accepted Payment Methods woocommerce accepted payment methods shortcode.


Usage

  1. // basic usage 
  2. echo do_shortcode('[woocommerce_accepted_payment_methods]'); 
  1. // variable usage 
  2. $result = do_shortcode('[woocommerce_accepted_payment_methods]'); 
  3. echo $result;  

Defined (1)

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

/accepted-payment-methods.php  
  1. echo '</ul>'; 
  2.  
  3. // The shortcode 
  4. add_shortcode( 'woocommerce_accepted_payment_methods', 'wc_accepted_payment_methods' ); 
  5.  
  6. // The widget 
  7. class Accepted_Payment_Methods extends WP_Widget { 
  8.  
  9. function Accepted_Payment_Methods() {