Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $fields['maDate'] = array(
- 'weight' => 30,
- 'label' => __( 'Date', 'sprout-invoices' ),
- 'type' => 'text',
- 'required' => true,
- 'default' => date("d/m/Y"), /* <———————————————————————— GET THIS DATE */
- public static function submission_form_fields() {
- $current_user = wp_get_current_user();
- $fields = array();
- $fields['title'] = array(
- 'weight' => 10,
- 'label' => __( 'Subject', 'sprout-invoices' ),
- 'type' => 'text',
- 'required' => true,
- 'default' => '', // <———————————————————————— GET THE DATE HERE */
- );
Advertisement
Add Comment
Please, Sign In to add comment