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
/* Restrict Upload Access for Users not paid */ function restrict_upload_access() { if ( ! current_user_can( 'administrator' ) ) { if ( get_user_option( 'jpw_subscribe_status', get_current_user_id() ) !== 'ACTIVE' ) { $url = $_SERVER['REQUEST_URI']; $submit_post = strpos( $url, '/editor/' ); $upload_video = strpos( $url, '/upload/' ); if ( $submit_post || $upload_video ) { wp_redirect( home_url() ); exit(); } add_action( 'wp_head', function () { ?>
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)