diff --git a/.DS_Store b/.DS_Store index 8ab2cc5..39da371 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/admin/class-paystack-forms-admin.php b/admin/class-paystack-forms-admin.php index 6783f11..e88ee6b 100755 --- a/admin/class-paystack-forms-admin.php +++ b/admin/class-paystack-forms-admin.php @@ -8,20 +8,20 @@ public function __construct( $plugin_name, $version ) { $this->plugin_name = $plugin_name; $this->version = $version; - add_action('admin_menu' , 'add_settings_page'); - add_action( 'admin_init', 'register_paystack_setting_page' ); + add_action('admin_menu' , 'kkd_pff_paystack_add_settings_page'); + add_action( 'admin_init', 'kkd_pff_paystack_register_setting_page' ); - function add_settings_page() { - add_submenu_page('edit.php?post_type=paystack_form', 'Api Keys Settings', 'Api Keys Settings', 'edit_posts', basename(__FILE__), 'paystack_setting_page'); + function kkd_pff_paystack_add_settings_page() { + add_submenu_page('edit.php?post_type=paystack_form', 'Api Keys Settings', 'Api Keys Settings', 'edit_posts', basename(__FILE__), 'kkd_pff_paystack_setting_page'); } - function register_paystack_setting_page() { - register_setting( 'paystack-form-settings-group', 'mode' ); - register_setting( 'paystack-form-settings-group', 'tsk' ); - register_setting( 'paystack-form-settings-group', 'tpk' ); - register_setting( 'paystack-form-settings-group', 'lsk' ); - register_setting( 'paystack-form-settings-group', 'lpk' ); + function kkd_pff_paystack_register_setting_page() { + register_setting( 'kkd-pff-paystack-settings-group', 'mode' ); + register_setting( 'kkd-pff-paystack-settings-group', 'tsk' ); + register_setting( 'kkd-pff-paystack-settings-group', 'tpk' ); + register_setting( 'kkd-pff-paystack-settings-group', 'lsk' ); + register_setting( 'kkd-pff-paystack-settings-group', 'lpk' ); } - function txncheck($name,$txncharge){ + function kkd_pff_paystack_txncheck($name,$txncharge){ if ($name == $txncharge) { $result = "selected"; }else{ @@ -29,19 +29,19 @@ function txncheck($name,$txncharge){ } return $result; } - function paystack_setting_page() { + function kkd_pff_paystack_setting_page() { ?>