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
/** * JKIt Hide Out of Stock Items * * Hide Out of Stock Product in Jeg Elementor Kit Query's * Executed if is Jeg Elementor Kit Query and Post Type is Product (WooCommerce) * * @param array $args \WP_Query Arguments. * @param array $attr Attribute. */ function jkit_hide_out_of_stock_items( $args, $attr ) { if ( isset( $attr['post_type'] ) && 'product' === $attr['post_type'] ) { $args['meta_key'] = '_stock_status'; $args['meta_value'] = 'outofstock'; $args['meta_compare'] = '!='; } return $args; } add_filter( 'jeg_default_query_args', 'jkit_hide_out_of_stock_items', 10, 2 );
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)