Advertisement
fauzanjeg

Check User Subscribe Status

Mar 3rd, 2021
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.30 KB | None | 0 0
  1. /* Check User Subscribe Status  */
  2. function check_subscribe() {
  3.     if ( get_user_option( 'jpw_subscribe_status', get_current_user_id() ) === 'ACTIVE' ) { /* Check current user if subscribe or not */
  4.         /* Insert your code here */
  5.     }
  6. }
  7.  
  8. add_action( 'init', 'check_subscribe' ); /* Example Hook */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement