Skip to content

Instantly share code, notes, and snippets.

@man4toman
Created October 24, 2018 09:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save man4toman/c7c798ee949261a5baea7c1129d3f0c0 to your computer and use it in GitHub Desktop.
Save man4toman/c7c798ee949261a5baea7c1129d3f0c0 to your computer and use it in GitHub Desktop.
Woocommerce text input
<?php
$args = array(
'label' => '', // Text in Label
'placeholder' => '', // Default placeholder
'class' => '', // Class of input
'style' => '', // Inline style
'wrapper_class' => '', // Class of input wrapper
'value' => '', // If value goes empty, it retrieved from post meta where id is the meta_key
'id' => '', // Required
'name' => '', // If name goes empty, it will set from id
'type' => '', // Input type
'desc_tip' => '', // Description tip
'data_type' => '', // Data type
'custom_attributes' => '', // Array of attributes
'description' => '' // Description
);
woocommerce_wp_text_input( $args );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment