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
/** * JNEWS Custom, Exclude Subscription Users by Roles * * @param array $roles Default is administrator. * * @return array $roles */ function jcustom_exclude_subscription_users_by_roles( $roles ) { /** List Role (Defaults): administrator, editor, author, contributor, subscriber */ $roles[] = 'author'; /** Single Add */ // $roles = array_merge( $roles, array( 'editor', 'contributor' ) ); /** Multiple Add */ return $roles; } add_filter( 'jnews_paywall_unaffected_role_list', 'jcustom_exclude_subscription_users_by_roles' );
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)