Add woocommerce_product_visibility_options filter

Matches filter used in class-wc-admin-post-types.php
This commit is contained in:
Paul Kilmurray 2014-07-04 14:42:14 +08:00
parent abe0d0004a
commit 8c2f7a1388
1 changed files with 5 additions and 5 deletions

View File

@ -110,12 +110,12 @@
<span class="input-text-wrap">
<select class="visibility" name="_visibility">
<?php
$options = array(
$options = apply_filters( 'woocommerce_product_visibility_options', array(
'visible' => __( 'Catalog &amp; search', 'woocommerce' ),
'catalog' => __( 'Catalog', 'woocommerce' ),
'search' => __( 'Search', 'woocommerce' ),
'hidden' => __( 'Hidden', 'woocommerce' )
);
'search' => __( 'Search', 'woocommerce' ),
'hidden' => __( 'Hidden', 'woocommerce' )
) );
foreach ($options as $key => $value) {
echo '<option value="' . esc_attr( $key ) . '">'. $value .'</option>';
}
@ -186,4 +186,4 @@
<input type="hidden" name="woocommerce_quick_edit" value="1" />
<input type="hidden" name="woocommerce_quick_edit_nonce" value="<?php echo wp_create_nonce( 'woocommerce_quick_edit_nonce' ); ?>" />
</div>
</fieldset>
</fieldset>