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
/** Filter content for categories widget */ function widget_categories_args_filter( $cat_args ) { $categories_name = array( 'apps', 'entertainment' ); $include_arr = array(); foreach ($categories_name as $data) { $include_arr[] = get_cat_ID( $data ); } if ( isset( $cat_args['include'] ) && ! empty( $cat_args['include'] ) ) { $include_arr = array_unique( array_merge( explode( ',', $cat_args['include'] ), $include_arr ) ); } $cat_args['include'] = implode( ',', $include_arr ); return $cat_args; } add_filter( 'widget_categories_args', 'widget_categories_args_filter', 10, 1 );
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)