Skip to content

Commit

Permalink
Wordpress Plugin Submission Review fixes (#26)
Browse files Browse the repository at this point in the history
* wordpress plugin fixes

* move to asset folder per guide
  • Loading branch information
ntheile authored Feb 19, 2024
1 parent bec52ad commit 38034ef
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 11 deletions.
Binary file added zaprite-payment-gateway/assets/screenshot-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added zaprite-payment-gateway/assets/screenshot-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added zaprite-payment-gateway/assets/screenshot-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion zaprite-payment-gateway/includes/hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* Admin Hooks
*/
function message_on_plugin_activate() {
function zaprite_message_on_plugin_activate() {
// Set a transient that expires after a little while (e.g., 60 seconds)
set_transient( 'zaprite_admin_notices', true, 60 );
}
Expand Down
12 changes: 11 additions & 1 deletion zaprite-payment-gateway/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,14 @@ For support and feature requests, please visit https://zaprite.zendesk.com/hc/en

== Additional Notes ==

Zaprite is not affiliated with or endorsed by WooCommerce, WordPress, or any cryptocurrency entities. This plugin is developed and maintained by independent developers.
Zaprite is not affiliated with or endorsed by WooCommerce, WordPress, or any cryptocurrency entities. This plugin is developed and maintained by independent developers.

== Frequently Asked Questions ==

See the blog for FAQ's https://blog.zaprite.com/how-to-connect-your-woocommerce-store/

== Screenshots ==

1. The API key from Zaprite for WooCommerce
2. Configure the plugin
3. Checkout using Zaprite
19 changes: 10 additions & 9 deletions zaprite-payment-gateway/zaprite-payment-gateway.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<?php

/*
Plugin Name: Zaprite Payment Gateway
Plugin URI: https://github.com/ZapriteApp/zaprite-for-woocommerce
Description: Accept bitcoin (on-chain and lightning) and fiat payments in one unified Zaprite Checkout.
Version: 1.0.0
Author: zaprite
Author URI: https://zaprite.com
Text Domain: zaprite-payment-gateway
*/
* Plugin Name: Zaprite Payment Gateway
* Plugin URI: https://github.com/ZapriteApp/zaprite-for-woocommerce
* Description: Accept bitcoin (on-chain and lightning) and fiat payments in one unified Zaprite Checkout.
* Version: 1.0.0
* Author: zaprite
* Author URI: https://zaprite.com
* Text Domain: zaprite-payment-gateway
* License: MIT
*/

add_action( 'plugins_loaded', 'zaprite_server_init' );

Expand All @@ -22,7 +23,7 @@
define( 'WC_PAYMENT_GATEWAY_ZAPRITE_ASSETS', WC_PAYMENT_GATEWAY_ZAPRITE_URL . '/assets' );

require_once __DIR__ . '/includes/hooks.php';
register_activation_hook( __FILE__, 'message_on_plugin_activate' );
register_activation_hook( __FILE__, 'zaprite_message_on_plugin_activate' );
add_action( 'admin_notices', 'zaprite_admin_notices' );

require_once __DIR__ . '/includes/init.php';
Expand Down

0 comments on commit 38034ef

Please sign in to comment.