Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
/* Give user premium access by manual */ function give_user_premium_access_by_manual() { if ( is_admin() ) { /* If admin */ $email = array( 'your_email@gmail.com', 'exampleemail@yahoo.com' ); /* List Users by Email */ foreach ($email as &$value) { $id_user = get_user_by('email', $value); /* Gey Data Users */ // update_user_option( $id_user->ID, 'jpw_subscribe_status', 'ACTIVE' ); /* Run this function to Enable Premium Users */ // update_user_option( $id_user->ID, 'jpw_expired_date', '2022-08-11 09:09:09' ); /* Run this function to Enable Premium Users */ update_user_option( $id_user->ID, 'jpw_subscribe_status', false ); /* Run this function to Disable Premium Users */ } } } add_action( 'init', 'give_user_premium_access_by_manual' );
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)