%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/itworks/wp-content/plugins/paid-memberships-pro/shortcodes/
Upload File :
Create Path :
Current File : /var/www/html/itworks/wp-content/plugins/paid-memberships-pro/shortcodes/checkout_button.php

<?php
/*
	Shortcode to show a link/button linking to the checkout page for a specific level
*/
function pmpro_checkout_button_shortcode($atts, $content=null, $code="")
{
	// $atts    ::= array of attributes
	// $content ::= text within enclosing form of shortcode element
	// $code    ::= the shortcode found, when == callback name
	// examples: [pmpro_checkout_button level="3"]

	extract(shortcode_atts(array(
		'level' => NULL,
		'text' => NULL,
		'class' => NULL
	), $atts));
	
	return pmpro_getCheckoutButton($level, $text, $class);
}
add_shortcode("pmpro_button", "pmpro_checkout_button_shortcode");
add_shortcode("pmpro_checkout_button", "pmpro_checkout_button_shortcode");

Zerion Mini Shell 1.0