Merge pull request #5838 from danielvonmitschke/master

adding default product visibility filter hook
This commit is contained in:
Mike Jolley 2014-07-30 12:58:50 +01:00
commit 80a33b83d7
1 changed files with 1 additions and 1 deletions

View File

@ -1934,7 +1934,7 @@ class WC_Admin_Post_Types {
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';
$visibility_options = apply_filters( 'woocommerce_product_visibility_options', array(