SHARE
TWEET

Protect URL Custom Field Menggunakan Shortcode PMS

pustakakoran Mar 30th, 2017 (edited) 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. PAKAI TEKS:
  2. <?php
  3.     $my_full = get_post_meta( get_the_ID(), 'full', true);
  4.         if( ! empty( $my_full ) ) {
  5.         echo do_shortcode('[pms-restrict subscription_plans="38"]<a href=' . $my_full . ' target="_blank">DOWNLOAD</a>[/pms-restrict]');
  6.     }
  7. ?>
  8.  
  9. PAKAI GAMBAR:
  10. <?php
  11.     $my_full = get_post_meta( get_the_ID(), 'full', true);
  12.         if( ! empty( $my_full ) ) {
  13.         echo do_shortcode('[pms-restrict subscription_plans="38"]<a href=' . $my_full . ' target="_blank"><img src="http://pustakakoran.com/pdf.png"></a>[/pms-restrict]');
  14.     }
  15. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top