• 1.
    // Update at the bottom of the plugin...
  • 2.
    $gw_submit_to_access = new GW_Submit_Access();
  • 3.
     
  • 4.
    // Use this in any template.
  • 5.
    global $gw_submit_to_access;
  • 6.
    if( $gw_submit_to_acesss->has_access( $post_id ) ) {
  • 7.
        // do whatever
  • 8.
    }
// Update at the bottom of the plugin... $gw_submit_to_access = new GW_Submit_Access(); // Use this in any template. global $gw_submit_to_access; if( $gw_submit_to_acesss->has_access( $post_id ) ) { // do whatever }

Copy Code to Clipboard Raw

Sign-in or Create a Free Account.

Snippi uses Twitter or Facebook to register and create accounts. Registration will enable you to keep track of your snippets. We never spam your timeline or wall. Ever.

Sign-in with Facebook Sign-in with Twitter