/**
* Displays coupon code popup.
*
* @since 1.5.1
*
* @return void
*/
function clpr_coupon_code_popup() {
if ( 'GET' != $_SERVER['REQUEST_METHOD'] ) {
appthemes_display_notice( 'error', __( 'Sorry, only get method allowed.', APP_TD ) );
die;
}
$post_id = isset( $_GET['id'] ) ? (int) appthemes_numbers_only( $_GET['id'] ) : 0;
if ( $post_id < 1 ) {
appthemes_display_notice( 'error', __( 'Sorry, item does not exist.', APP_TD ) );
die;
}
$post = get_post( $post_id );
if ( ! $post ) {
appthemes_display_notice( 'error', __( 'Sorry, item does not exist.', APP_TD ) );
die;
}
There are currently 1 users browsing this thread. (0 members and 1 guests)