Description
Syntax hook for [paypal] shortcodeNote: The PayPal block supports pay-noCC and buy-noCC but it's not documented for the shortcode. The PayPal block doesn't support weight or shipcost2.
Usage
paypal__syntax( $shortcode );Parameters
- $shortcode
- ( mixed ) optional default: paypal –
Returns
voidSource
File name: oik/shortcodes/oik-paypal.phpLines:
1 to 15 of 15
function paypal__syntax( $shortcode="paypal" ) { $syntax = array( "type" => BW_::bw_skv( "donate", "pay|buy|add|view", __( "Button type", "oik" ) ) , "email" => BW_::bw_skv( "paypal-email", "<i>" . __( "email", "oik" ) . "</i>", __( "PayPal email address", "oik" ) ) , "location" => BW_::bw_skv( "GB", "<i>" . __( "country", "oik" ) . "</i>", __( "PayPal Country code", "oik" ) ) , "currency" => BW_::bw_skv( "GBP", "<i>" . __( "currency", "oik" ) . "</i>", __( "PayPal currency", "oik" ) ) , "amount" => BW_::bw_skv( null, "<i>" . __( "nn.mm", "oik" ) . "</i>", __( "Amount without currency symbol", "oik" ) ) , "productname" => BW_::bw_skv( "oik-plugin", "<i>" . __( "text", "oik" ) . "</i>", __( "Product name", "oik" ) ) , "sku" => BW_::bw_skv( "oik", "<i>" . __( "SKU", "oik" ) . "</i>", __( "Stock Keeping Unit", "oik" ) ) , "shipadd" => BW_::bw_skv( "2", "0|1", __( "Shipping Address Required? 0=prompt, optional, 1=do not prompt, 2=prompt and require", "oik" ) ) , "weight" => BW_::bw_skv( null, "<i>" . __( "nn.mm", "oik" ) . "</i>", __( "Weight in kilos or pounds", "oik" ) ) , "shipcost" => BW_::bw_skv( null, "<i>" . __( "nn.mm", "oik" ) . "</i>", __( "Shipping cost", "oik" ) ) , "shipcost2" => BW_::bw_skv( null, "<i>" . __( "nn.mm", "oik" ) . "</i>", __( "Shipping cost2", "oik" ) ) ); return( $syntax ); }View on GitHub View on Trac
Called by
1 to 2 of 2
