Changeset 3215351
- Timestamp:
- 12/31/2024 01:32:04 PM (15 months ago)
- Location:
- wp360-invoice
- Files:
-
- 2 added
- 8 edited
-
tags/1.0.1/README.md (modified) (1 diff)
-
tags/1.0.1/changelog.txt (added)
-
tags/1.0.1/front/myaccount_invoice_tab.php (modified) (1 diff)
-
tags/1.0.1/readme.txt (modified) (1 diff)
-
tags/1.0.1/wp360-invoice.php (modified) (3 diffs)
-
trunk/README.md (modified) (1 diff)
-
trunk/changelog.txt (added)
-
trunk/front/myaccount_invoice_tab.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/wp360-invoice.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp360-invoice/tags/1.0.1/README.md
r3214839 r3215351 6 6 Requires at least: 5.2.0 7 7 Tested up to: 6.7.1 8 Stable tag: 1.0. 18 Stable tag: 1.0.2 9 9 Requires PHP: 7.4.8 10 10 License: GPLv2 or later -
wp360-invoice/tags/1.0.1/front/myaccount_invoice_tab.php
r3214839 r3215351 11 11 } 12 12 add_filter( 'woocommerce_account_menu_items', 'wp360invoice_add_invoice_tab_to_my_account', 20 ); 13 function wp360invoice_invoice_endpoint() {14 add_rewrite_endpoint( 'wp360_invoice', EP_ROOT | EP_PAGES );15 }16 add_action( 'init', 'wp360invoice_invoice_endpoint' );17 13 function wp360invoice_invoice_query_vars( $vars ) { 18 14 $vars[] = 'wp360_invoice'; -
wp360-invoice/tags/1.0.1/readme.txt
r3214839 r3215351 6 6 Requires at least: 5.2.0 7 7 Tested up to: 6.7.1 8 Stable tag: 1.0. 18 Stable tag: 1.0.2 9 9 Requires PHP: 7.4.8 10 10 License: GPLv2 or later -
wp360-invoice/tags/1.0.1/wp360-invoice.php
r3214839 r3215351 8 8 Author: wp360 9 9 Author URI: https://wp360.in/ 10 Version: 1.0. 110 Version: 1.0.2 11 11 Text Domain: wp360-invoice 12 12 ***/ … … 22 22 * @since 1.0.0 23 23 */ 24 define('WP360_VERSION', '1.0. 0');24 define('WP360_VERSION', '1.0.2'); 25 25 } 26 26 … … 96 96 return $plugin_data['Version']; 97 97 } 98 99 100 // Hook into plugin activation 101 register_activation_hook( __FILE__, 'wp360invoice_plugin_activation_hook' ); 102 function wp360invoice_plugin_activation_hook() { 103 set_transient( 'wp360invoice_flush_rewrite', true, 60 * 60 ); 104 } 105 // Hook into plugin update 106 add_action( 'upgrader_process_complete', 'wp360invoice_flush_rewrite_on_update', 10, 2 ); 107 function wp360invoice_flush_rewrite_on_update( $upgrader, $options ) { 108 if ( isset( $options['type'] ) && 'plugin' === $options['type'] && isset( $options['plugins'] ) ) { 109 // Check if this plugin was updated 110 if ( in_array( plugin_basename( __FILE__ ), $options['plugins'] ) ) { 111 set_transient( 'wp360invoice_flush_rewrite', true, 60 * 60 ); 112 } 113 } 114 } 115 // Hook into 'init' to perform the flush after activation or update 116 add_action( 'init', 'wp360invoice_invoice_endpoint' ); 117 function wp360invoice_invoice_endpoint() { 118 if ( get_transient( 'wp360invoice_flush_rewrite' ) ) { 119 flush_rewrite_rules(); 120 delete_transient( 'wp360invoice_flush_rewrite' ); 121 } 122 add_rewrite_endpoint( 'wp360_invoice', EP_ROOT | EP_PAGES ); 123 } -
wp360-invoice/trunk/README.md
r3214855 r3215351 6 6 Requires at least: 5.2.0 7 7 Tested up to: 6.7.1 8 Stable tag: 1.0. 18 Stable tag: 1.0.2 9 9 Requires PHP: 7.4.8 10 10 License: GPLv2 or later -
wp360-invoice/trunk/front/myaccount_invoice_tab.php
r3124326 r3215351 11 11 } 12 12 add_filter( 'woocommerce_account_menu_items', 'wp360invoice_add_invoice_tab_to_my_account', 20 ); 13 function wp360invoice_invoice_endpoint() {14 add_rewrite_endpoint( 'wp360_invoice', EP_ROOT | EP_PAGES );15 }16 add_action( 'init', 'wp360invoice_invoice_endpoint' );17 13 function wp360invoice_invoice_query_vars( $vars ) { 18 14 $vars[] = 'wp360_invoice'; -
wp360-invoice/trunk/readme.txt
r3214855 r3215351 6 6 Requires at least: 5.2.0 7 7 Tested up to: 6.7.1 8 Stable tag: 1.0. 18 Stable tag: 1.0.2 9 9 Requires PHP: 7.4.8 10 10 License: GPLv2 or later -
wp360-invoice/trunk/wp360-invoice.php
r3214855 r3215351 8 8 Author: wp360 9 9 Author URI: https://wp360.in/ 10 Version: 1.0. 110 Version: 1.0.2 11 11 Text Domain: wp360-invoice 12 12 ***/ … … 22 22 * @since 1.0.0 23 23 */ 24 define('WP360_VERSION', '1.0. 0');24 define('WP360_VERSION', '1.0.2'); 25 25 } 26 26 … … 96 96 return $plugin_data['Version']; 97 97 } 98 99 100 // Hook into plugin activation 101 register_activation_hook( __FILE__, 'wp360invoice_plugin_activation_hook' ); 102 function wp360invoice_plugin_activation_hook() { 103 set_transient( 'wp360invoice_flush_rewrite', true, 60 * 60 ); 104 } 105 // Hook into plugin update 106 add_action( 'upgrader_process_complete', 'wp360invoice_flush_rewrite_on_update', 10, 2 ); 107 function wp360invoice_flush_rewrite_on_update( $upgrader, $options ) { 108 if ( isset( $options['type'] ) && 'plugin' === $options['type'] && isset( $options['plugins'] ) ) { 109 // Check if this plugin was updated 110 if ( in_array( plugin_basename( __FILE__ ), $options['plugins'] ) ) { 111 set_transient( 'wp360invoice_flush_rewrite', true, 60 * 60 ); 112 } 113 } 114 } 115 // Hook into 'init' to perform the flush after activation or update 116 add_action( 'init', 'wp360invoice_invoice_endpoint' ); 117 function wp360invoice_invoice_endpoint() { 118 if ( get_transient( 'wp360invoice_flush_rewrite' ) ) { 119 flush_rewrite_rules(); 120 delete_transient( 'wp360invoice_flush_rewrite' ); 121 } 122 add_rewrite_endpoint( 'wp360_invoice', EP_ROOT | EP_PAGES ); 123 }
Note: See TracChangeset
for help on using the changeset viewer.