Add woocommerce_product_visibility_options filter
Matches filter used in class-wc-admin-post-types.php
This commit is contained in:
parent
abe0d0004a
commit
8c2f7a1388
|
@ -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 & 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>
|
||||
|
|
Loading…
Reference in New Issue