Title: optional or mandatory shortcode parameters
Last modified: July 27, 2019

---

# optional or mandatory shortcode parameters

 *  Resolved [andreu19](https://wordpress.org/support/users/andreu19/)
 * (@andreu19)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/optional-or-mandatory-shortcode-parameters/)
 * Hello,
 * I want to use a Shortcode to indicate a text on the payment button:
 * This is the Shortcode:
 * [wp_paypal_payment_box email=”your@paypal-email” options=”Payment for Service
   1: 15.50 | Payment for Service 2: 30.00 | Payment for Service 3: 47.00″ button_text
   = “Pay Now”]
 * But I don’t want to use the parameter ‘email =” your @ paypal-email “’ I don’t
   want the email address to appear. If I omit this parameter in the Shortcode, 
   nothing works, the pluguin does not appear on the page.
 * How can I omit this parameter and make it work correctly?
 * Thank you
    Best regards
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Foptional-or-mandatory-shortcode-parameters%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/optional-or-mandatory-shortcode-parameters/#post-11774048)
 * Hi,
 * If you use a custom shortcode then you must also include the **email=””** parameter
   as well. In other words when you use **wp_paypal_payment_box**, you need to include
   the **email=””** parameter in the shortcode.
 * When using the following shortcode **[wp_paypal_payment]**, it includes the options
   entered in the plugins settings.
 * Kind regards
    -  This reply was modified 6 years, 10 months ago by [mbrsolution](https://wordpress.org/support/users/mbrsolution/).
 *  Thread Starter [andreu19](https://wordpress.org/support/users/andreu19/)
 * (@andreu19)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/optional-or-mandatory-shortcode-parameters/#post-11778725)
 * Hello,
 * Thank you very much for the reply.
 * It’s true, it’s true, I was somewhat awkward in this matter, my apologies.
 * Thank you
 * Best regards
 *  Plugin Contributor [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/optional-or-mandatory-shortcode-parameters/#post-11779678)
 * Hi, no harm done. If you need more information or help let me know.
 * Enjoy the plugin.
 * Kind regards

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘optional or mandatory shortcode parameters’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-easy-paypal-payment-or-donation-accept-plugin/
   assets/icon-128x128.png?rev=2722524)
 * [Easy Accept Payments via PayPal](https://wordpress.org/plugins/wordpress-easy-paypal-payment-or-donation-accept-plugin/)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-easy-paypal-payment-or-donation-accept-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-easy-paypal-payment-or-donation-accept-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-easy-paypal-payment-or-donation-accept-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-easy-paypal-payment-or-donation-accept-plugin/reviews/)

## Tags

 * [mandatory](https://wordpress.org/support/topic-tag/mandatory/)
 * [parameters](https://wordpress.org/support/topic-tag/parameters/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 3 replies
 * 2 participants
 * Last reply from: [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/optional-or-mandatory-shortcode-parameters/#post-11779678)
 * Status: resolved