parent
66259ebff1
commit
4a4e201888
|
@ -1830,15 +1830,13 @@ class WC_Admin_Post_Types {
|
|||
<input type="hidden" name="current_featured" id="current_featured" value="<?php echo esc_attr( $current_featured ); ?>" />
|
||||
|
||||
<?php
|
||||
echo '<p>' . __( 'Choose where this product should be displayed in your catalog. The product will always be accessible directly.', 'woocommerce' ) . '</p>';
|
||||
echo '<p>' . __( 'This setting determines which shop pages products will be listed on.', 'woocommerce' ) . '</p>';
|
||||
|
||||
foreach ( $visibility_options as $name => $label ) {
|
||||
echo '<input type="radio" name="_visibility" id="_visibility_' . esc_attr( $name ) . '" value="' . esc_attr( $name ) . '" ' . checked( $current_visibility, $name, false ) . ' data-label="' . esc_attr( $label ) . '" /> <label for="_visibility_' . esc_attr( $name ) . '" class="selectit">' . esc_html( $label ) . '</label><br />';
|
||||
}
|
||||
|
||||
echo '<p>' . __( 'Enable this option to feature this product.', 'woocommerce' ) . '</p>';
|
||||
|
||||
echo '<input type="checkbox" name="_featured" id="_featured" ' . checked( $current_featured, 'yes', false ) . ' /> <label for="_featured">' . __( 'Featured product', 'woocommerce' ) . '</label><br />';
|
||||
echo '<br /><input type="checkbox" name="_featured" id="_featured" ' . checked( $current_featured, 'yes', false ) . ' /> <label for="_featured">' . __( 'This is a featured product', 'woocommerce' ) . '</label><br />';
|
||||
?>
|
||||
<p>
|
||||
<a href="#catalog-visibility" class="save-post-visibility hide-if-no-js button"><?php _e( 'OK', 'woocommerce' ); ?></a>
|
||||
|
|
|
@ -746,9 +746,9 @@ function wc_get_product_attachment_props( $attachment_id = null, $product = fals
|
|||
*/
|
||||
function wc_get_product_visibility_options() {
|
||||
return apply_filters( 'woocommerce_product_visibility_options', array(
|
||||
'visible' => __( 'Visible', 'woocommerce' ),
|
||||
'catalog' => __( 'Catalog', 'woocommerce' ),
|
||||
'search' => __( 'Search', 'woocommerce' ),
|
||||
'visible' => __( 'Shop and search results', 'woocommerce' ),
|
||||
'catalog' => __( 'Shop only', 'woocommerce' ),
|
||||
'search' => __( 'Search results only', 'woocommerce' ),
|
||||
'hidden' => __( 'Hidden', 'woocommerce' ),
|
||||
) );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue