Skip to content

Commit

Permalink
v1.4.6:
Browse files Browse the repository at this point in the history
  • Loading branch information
knit-pay committed Oct 30, 2024
1 parent 39c2a47 commit c0cca9a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions upi-qr-code-payment-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: UPI QR Code Payment Gateway
* Plugin URI: https://wordpress.org/plugins/upi-qr-code-payment-for-woocommerce/
* Description: It enables a WooCommerce site to accept payments through UPI apps like BHIM, Google Pay, Paytm, PhonePe or any Banking UPI app. Avoid payment gateway charges.
* Version: 1.4.5
* Version: 1.4.6
* Author: Team KnitPay
* Author URI: https://www.knitpay.org/
* License: GPLv3
Expand Down Expand Up @@ -48,7 +48,7 @@ final class UPIWC {
*
* @var string
*/
public $version = '1.4.5';
public $version = '1.4.6';

/**
* Minimum version of WordPress required to run UPIWC.
Expand Down Expand Up @@ -183,15 +183,15 @@ private function define_constants() {
private function instantiate() {
// Activation hook.
register_activation_hook(
UPIWC_FILE,
UPIWC_FILE,
function () {
set_transient( 'upiwc-admin-notice-on-activation', true, 5 );
}
}
);

// Deactivation hook.
register_deactivation_hook(
UPIWC_FILE,
UPIWC_FILE,
function () {
delete_option( 'upiwc_plugin_dismiss_rating_notice' );
delete_option( 'upiwc_plugin_no_thanks_rating_notice' );
Expand All @@ -200,7 +200,7 @@ function () {
delete_option( 'upiwc_plugin_no_thanks_donate_notice' );
delete_option( 'upiwc_plugin_dismissed_time' );
delete_option( 'upiwc_plugin_dismissed_time_donate' );
}
}
);

// Initialize the action and filter hooks.
Expand Down Expand Up @@ -269,7 +269,7 @@ public function plugin_row_meta( $links, $file ) {
*/
public function action_links( $links ) {
$links[] = '<a href="' . admin_url( 'admin.php?page=wc-settings&tab=checkout&section=wc-upi' ) . '">' . __( 'Settings', 'upi-qr-code-payment-for-woocommerce' ) . '</a>';

return $links;
}

Expand Down Expand Up @@ -331,7 +331,7 @@ public function admin_notice() {
?>
<div class="notice notice-success">
<p><strong><?php printf( __( 'Thanks for installing %1$s v%2$s plugin. Click <a href="%3$s">here</a> to configure plugin settings.', 'upi-qr-code-payment-for-woocommerce' ), 'UPI QR Code Payment Gateway', UPIWC_VERSION, admin_url( 'admin.php?page=wc-settings&tab=checkout&section=wc-upi' ) ); ?></strong></p>
</div>
</div>
<?php
delete_transient( 'upiwc-admin-notice-on-activation' );
}
Expand All @@ -342,7 +342,7 @@ public function admin_notice() {
|| apply_filters( 'upiwc_plugin_hide_sticky_notice', false ) ) {
$show_rating = false;
}

if ( $show_rating ) {
$dismiss = wp_nonce_url( add_query_arg( 'upiwc_notice_action', 'dismiss_rating' ), 'upiwc_notice_nonce' );
$no_thanks = wp_nonce_url( add_query_arg( 'upiwc_notice_action', 'no_thanks_rating' ), 'upiwc_notice_nonce' );
Expand Down

0 comments on commit c0cca9a

Please sign in to comment.