Merge pull request #5838 from danielvonmitschke/master
adding default product visibility filter hook
This commit is contained in:
commit
80a33b83d7
|
@ -1934,7 +1934,7 @@ class WC_Admin_Post_Types {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$current_visibility = ( $current_visibility = get_post_meta( $post->ID, '_visibility', true ) ) ? $current_visibility : 'visible';
|
$current_visibility = ( $current_visibility = get_post_meta( $post->ID, '_visibility', true ) ) ? $current_visibility : apply_filters( 'woocommerce_product_visibility_default' , 'visible' );
|
||||||
$current_featured = ( $current_featured = get_post_meta( $post->ID, '_featured', true ) ) ? $current_featured : 'no';
|
$current_featured = ( $current_featured = get_post_meta( $post->ID, '_featured', true ) ) ? $current_featured : 'no';
|
||||||
|
|
||||||
$visibility_options = apply_filters( 'woocommerce_product_visibility_options', array(
|
$visibility_options = apply_filters( 'woocommerce_product_visibility_options', array(
|
||||||
|
|
Loading…
Reference in New Issue