post-types\writepanels ?
-
How can I change these codes so that the download limits are set and no one can change them? Or Hide them so no one can see them?
// Download Limit woocommerce_wp_text_input( array( 'id' => '_download_limit', 'label' => __( 'Download Limit', 'woocommerce' ), 'placeholder' => __( 'Unlimited', 'woocommerce' ), 'description' => __( 'Leave blank for unlimited re-downloads.', 'woocommerce' ), 'type' => 'number', 'custom_attributes' => array( 'step' => '1', 'min' => '0' ) ) ); // Expirey woocommerce_wp_text_input( array( 'id' => '_download_expiry', 'label' => __( 'Download Expiry', 'woocommerce' ), 'placeholder' => __( 'Never', 'woocommerce' ), 'description' => __( 'Enter the number of days before a download link expires, or leave blank.', 'woocommerce' ), 'type' => 'number', 'custom_attributes' => array( 'step' => '1', 'min' => '0' ) ) ); do_action( 'woocommerce_product_options_downloads' ); echo '</div>';
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
- The topic ‘post-types\writepanels ?’ is closed to new replies.