Guest User

Untitled

a guest
Oct 18th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.78 KB | None | 0 0
  1. add_settings_field(
  2. 'custom_title',
  3. esc_html__('Custom Title', 'myplugin'),
  4. 'myplugin_callback_field_text',
  5. 'myplugin',
  6. 'myplugin_section_login',
  7. [ 'id' => 'custom_title', 'label' => esc_html__('Custom title attribute for the logo link', 'myplugin') ]
  8. );
  9.  
  10. add_settings_field(
  11. 'custom_style',
  12. esc_html__('Custom Style', 'myplugin'),
  13. 'myplugin_callback_field_radio',
  14. 'myplugin',
  15. 'myplugin_section_login',
  16. [ 'id' => 'custom_style', 'label' => esc_html__('Custom CSS for the Login screen', 'myplugin') ]
  17. );
  18.  
  19. add_settings_field(
  20. 'custom_message',
  21. esc_html__('Custom Message', 'myplugin'),
  22. 'myplugin_callback_field_textarea',
  23. 'myplugin',
  24. 'myplugin_section_login',
  25. [ 'id' => 'custom_message', 'label' => esc_html__('Custom text and/or markup', 'myplugin') ]
  26. );
  27.  
  28. add_settings_field(
  29. 'custom_footer',
  30. esc_html__('Custom Footer', 'myplugin'),
  31. 'myplugin_callback_field_text',
  32. 'myplugin',
  33. 'myplugin_section_admin',
  34. [ 'id' => 'custom_footer', 'label' => esc_html__('Custom footer text', 'myplugin') ]
  35. );
  36.  
  37. add_settings_field(
  38. 'custom_toolbar',
  39. esc_html__('Custom Toolbar', 'myplugin'),
  40. 'myplugin_callback_field_checkbox',
  41. 'myplugin',
  42. 'myplugin_section_admin',
  43. [ 'id' => 'custom_toolbar', 'label' => esc_html__('Remove new post and comment links from the Toolbar', 'myplugin') ]
  44. );
  45.  
  46. function paytm_settings_list(){
  47. $settings = array(
  48. array(
  49. 'display' => 'Merchant ID',
  50. 'name' => 'paytm_merchant_id',
  51. 'value' => '',
  52. 'type' => 'textbox',
  53. 'hint' => 'Merchant ID'
  54. ),
  55. array(
  56. 'display' => 'Merchant Key',
  57. 'name' => 'paytm_merchant_key',
  58. 'value' => '',
  59. 'type' => 'textbox',
  60. 'hint' => 'Merchant key'
  61. ),
  62. array(
  63. 'display' => 'Website',
  64. 'name' => 'paytm_website',
  65. 'value' => '',
  66. 'type' => 'textbox',
  67. 'hint' => 'Website'
  68. ),
  69. array(
  70. 'display' => 'Industry Type ID',
  71. 'name' => 'paytm_industry_type_id',
  72. 'value' => '',
  73. 'type' => 'textbox',
  74. 'hint' => 'Industry Type ID'
  75. ),
  76. array(
  77. 'display' => 'Channel ID',
  78. 'name' => 'paytm_channel_id',
  79. 'value' => '',
  80. 'type' => 'textbox',
  81. 'hint' => 'Channel ID e.g. WEB/WAP'
  82. ),
  83. array(
  84. 'display' => 'Mode',
  85. 'name' => 'paytm_mode',
  86. 'value' => 'TEST',
  87. 'values' => array('TEST'=>'TEST','LIVE'=>'LIVE'),
  88. 'type' => 'select',
  89. 'hint' => 'Change the mode of the payments'
  90. ),
Add Comment
Please, Sign In to add comment