Skip to content

Commit

Permalink
Change mycred tab to top up tab in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
iniznet committed Dec 1, 2022
1 parent b42fc82 commit 07c6486
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion authcred.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: AuthCRED
* Plugin URI: https://github.com/iniznet/authcred
* Description: Provide simple authentication alongside mycred integration with shortcodes
* Version: 1.2.3
* Version: 1.2.4
* Requires at least: 5.8
* Requires PHP: 7.2
* Author: niznet
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "authcred",
"version": "1.2.3",
"version": "1.2.4",
"description": "AuthCRED WP Plugin.",
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name" : "AuthCRED",
"version" : "1.2.3",
"version" : "1.2.4",
"download_url" : "https://github.com/iniznet/authcred/releases/download/v1.2.1/authcred-v1.2.1.zip",
"sections" : {
"description" : "Provide Authentication pages & system alongside mycred integration."
Expand Down
2 changes: 1 addition & 1 deletion src/CredShortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public function authcredBuyDynamic($atts, $content = null)
$args['nonce'] = wp_create_nonce('mycred-buy-creds');

$gateway = buycred_gateway('paypal-standard');
$preview = isset($settings['mycred_dynamic_calc_preview']) ? $settings['mycred_dynamic_calc_preview'] : 0;
$preview = isset($settings['topup_dynamic_calc_preview']) ? $settings['topup_dynamic_calc_preview'] : 0;


if (is_user_logged_in()) {
Expand Down
6 changes: 3 additions & 3 deletions src/Options/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ public function register($setups)
],
]
],
'mycred' => [
'name' => esc_html__('myCRED', 'authcred'),
'topup' => [
'name' => esc_html__('Top Up', 'authcred'),
'fields' => [
'mycred_dynamic_calc_preview' => [
'topup_dynamic_calc_preview' => [
'type' => 'checkbox',
'label' => esc_html__('Dynamic Calculation Preview', 'authcred'),
'description' => esc_html__('Display dynamic top up calculation preview after the input field.', 'authcred'),
Expand Down

0 comments on commit 07c6486

Please sign in to comment.