Skip to content

Available Shortcodes

Yusuf Fauzan edited this page Dec 1, 2022 · 7 revisions

Global

authcred-login


Return the login link based on the given id parameter.

Arguments:

  • id = 0: login page ID

authcred-logout


Return the logout link.

Arguments:

  • goto = null: page ID or link redirect after being logout

authcred-user-icon


Return the user icon SVG.

Arguments:

  • size = 16: icon size

authcred-balance


Return the current logged-in points balance.

Arguments: None

Posts or Pages

authcred


Display form templates.

It has the following templates:

  • Register
  • Login
  • Forgot Password
  • Change Password

Arguments:

  • register_id = ''
  • login_id = ''
  • forgot_id = ''
  • type = '': accept register, login, forgot, and change
  • class = ''
  • goto = null: page ID or link redirect after being logout

authcred-buy


A wrapper of the mycred_buy shortcode to display a single top up link button.

Arguments:

  • gateway = 'paypal-standard'
  • ctype = 'mycred_default'
  • amount = ''
  • cost = null
  • gift_to = ''
  • class = 'authcred-buy mycred-buy-link btn btn-primary btn-lg mt-4 no-underline text-black dark:text-white'
  • login = $mycredDefaultLoginMessage
  • title = ''
  • btn_label => ''

authcred-buy-dynamic


Recreation of the mycred_buy_form shortcode to display a single top up dynamic amount input

Arguments:

  • gateway = 'paypal-standard'
  • ctype = 'mycred_default'
  • amount = ''
  • gift_to = ''
  • 'class' => 'authcred-buy myCRED-buy-form mt-4 no-underline text-black dark:text-white',
  • login = $mycredDefaultLoginMessage
  • title = ''
  • btn_label => ''
  • e_rate = ''

authcred-buy-dynamic


Display form templates.

Navigation Only

Clone this wiki locally