Changeset 2638213
- Timestamp:
- 12/01/2021 06:21:15 PM (4 years ago)
- File:
-
- 1 edited
-
helloadherents/trunk/functions/settings-page.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
helloadherents/trunk/functions/settings-page.php
r2638210 r2638213 315 315 316 316 add_settings_field( 317 'wordpress_users_resetmail_from', // id318 'Nom de l\'expéditeur ', // title319 array( $this, 'wordpress_users_resetmail_from_callback' ), // callback320 'helloadhrents-admin', // page321 'output' // section322 );323 324 add_settings_field(325 317 'wordpress_users_resetmail_title', // id 326 318 'Titre du mail envoyé à vos adhérents ', // title … … 457 449 if ( isset( $input['wordpress_users_send_resetmail'] ) ) { 458 450 $sanitary_values['wordpress_users_send_resetmail'] = sanitize_text_field( $input['wordpress_users_send_resetmail'] ); 459 }460 if ( isset( $input['wordpress_users_resetmail_from'] ) ) {461 $sanitary_values['wordpress_users_resetmail_from'] = sanitize_text_field( $input['wordpress_users_resetmail_from'] );462 451 } 463 452 if ( isset( $input['wordpress_users_resetmail_title'] ) ) { … … 716 705 } 717 706 718 public function wordpress_users_resetmail_from_callback() {719 printf(720 '<input class="regular-text" type="text" name="ha_option_name[wordpress_users_resetmail_from]" id="wordpress_users_resetmail_from" value="%s">',721 isset( $this->helloadhrents_options['wordpress_users_resetmail_from'] ) && ($this->helloadhrents_options['wordpress_users_resetmail_from'] != '') ? esc_attr( $this->helloadhrents_options['wordpress_users_resetmail_from']) : ''722 );723 }724 725 707 public function wordpress_users_resetmail_title_callback() { 726 708 printf(
Note: See TracChangeset
for help on using the changeset viewer.