@@ -8,10 +8,12 @@ function print_app_create_settings() {
88
99 function settings_api_init () {
1010 add_settings_section ('print_app_settings_section ' , 'PrintApp Settings ' , 'printapp \\functions \\admin \\print_app_create_settings ' , 'print_app ' );
11- add_settings_field ('print_app_domain_key ' , 'Domain Key ' , 'printapp \\functions \\admin \\print_app_domain_key ' , 'print_app ' , 'print_app_settings_section ' , array ());
12- add_settings_field ('print_app_secret_key ' , 'Auth Key ' , 'printapp \\functions \\admin \\print_app_secret_key ' , 'print_app ' , 'print_app_settings_section ' , array ());
11+ add_settings_field ('print_app_domain_key ' , 'Domain Key: ' , 'printapp \\functions \\admin \\print_app_domain_key ' , 'print_app ' , 'print_app_settings_section ' , array ());
12+ add_settings_field ('print_app_secret_key ' , 'Auth Key: ' , 'printapp \\functions \\admin \\print_app_secret_key ' , 'print_app ' , 'print_app_settings_section ' , array ());
13+ add_settings_field ('print_app_cust_download_link ' , 'Include PDF Link in Customer Email: ' , 'printapp \\functions \\admin \\print_app_cust_download_link ' , 'print_app ' , 'print_app_settings_section ' , array ());
1314 register_setting ('print_app ' , 'print_app_domain_key ' );
1415 register_setting ('print_app ' , 'print_app_secret_key ' );
16+ register_setting ('print_app ' , 'print_app_cust_download_link ' );
1517 }
1618
1719 // input for capturing the PrintApp Domain Key
@@ -24,6 +26,10 @@ function print_app_secret_key() {
2426 echo '<input class="regular-text" id="print_app_secret_key" name="print_app_secret_key" type="text" value=" ' . esc_html ( get_option ('print_app_secret_key ' ) ) . '" /> ' ;
2527 }
2628
29+ function print_app_cust_download_link () {
30+ echo '<input class="regular-text" id="print_app_cust_download_link" name="print_app_cust_download_link" type="checkbox" ' . ( get_option ('print_app_cust_download_link ' ) == 'on ' ? 'checked ' : '' ) . ' /> ' ;
31+ }
32+
2733 // creates the PrintApp settings link in admin
2834 function add_settings_link ($ links ) {
2935 $ settings_link = array (
0 commit comments