HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/slfopp7cb1df/public_html/home/wp-content/plugins/easy-pricing-tables/includes/shortcodes.php
<?php

// include required for dh_ptp_generate_pricing_table()
include ( PTP_PLUGIN_PATH . '/includes/table-generation/table-generator.php');

/**
 * execute on shortcode appearance
 * @param  [type] $atts
 * @return [type]
 */
function dh_ptp_message_shortcode( $atts) {

	// extract id shortcode
    extract(shortcode_atts( array('id' => ''), $atts));  

    // check if id exists
    if ($id != '' ) {
		
    	global $features_metabox;
		$meta = get_post_meta($id, $features_metabox->get_the_id(), TRUE);

        // check if our pricing table contains any content
		if ($meta != "") {
            // if the table contains content, call the function that generates the table
			return do_shortcode(dh_ptp_generate_pricing_table($id));
		}
	}
	
	return __('Pricing table does not exist. Please check your shortcode.', 'easy-pricing-tables');
}
// add the shortcode
add_shortcode( 'easy-pricing-table', 'dh_ptp_message_shortcode' );