Changeset 1661938
- Timestamp:
- 05/22/2017 02:51:57 AM (9 years ago)
- Location:
- wp-rest-api-contact
- Files:
-
- 4 edited
-
assets/readme.txt (modified) (4 diffs)
-
trunk/includes/class.wprac-custom-controller.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/wp-rest-api-npa.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-rest-api-contact/assets/readme.txt
r1658982 r1661938 5 5 Requires at least: 4.5 6 6 Tested up to: 4.7.4 7 Stable tag: 1.0. 47 Stable tag: 1.0.5 8 8 License: MIT 9 9 License URI: http://opensource.org/licenses/MIT … … 33 33 == Changelog == 34 34 35 = 1.0.5 = 36 * New Page: NPA Tools . 37 35 38 = 1.0.4 = 36 39 * Required token for API . … … 49 52 50 53 == Upgrade Notice == 54 55 = 1.0.5 = 56 * New Page: NPA Tools . 51 57 52 58 = 1.0.4 = … … 73 79 - Show the list all subscribers. 74 80 - Send mail to list all subscribers. 81 - Open / close modules of the WP REST API NPA plugin. -
wp-rest-api-contact/trunk/includes/class.wprac-custom-controller.php
r1658980 r1661938 22 22 $instance = self::getInstance(); 23 23 24 $tools_options = get_option('wprac-tools-options-custom'); 25 24 26 /********************* 25 27 * Dang ky scripts … … 30 32 31 33 //======================== 34 // Run Tools Controller 35 //======================== 36 37 WPRAC_Tools_Controller::run(); 38 39 //======================== 32 40 // Run API Contact 33 41 //======================== 42 if( $tools_options && $tools_options['wprac_contact_api'] == 'on' ){ 43 WPRAC_Api_Contact_Controller::run(); 44 } 34 45 35 WPRAC_Api_Contact_Controller::run();36 46 37 47 //======================== 38 48 // Run API Newsletter 39 49 //======================== 40 41 WPRAC_Api_Newsletter_Controller::run(); 50 if( $tools_options && $tools_options['wprac_newsletter_api'] == 'on' ){ 51 WPRAC_Api_Newsletter_Controller::run(); 52 } 42 53 43 54 return $instance; … … 66 77 }else{ 67 78 update_option('wprac_plugin_version', WPRAC_VERSION); 79 } 80 81 /************************************* 82 * Kiểm tra tools option 83 *************************************/ 84 $tools_options = get_option('wprac-tools-options-custom'); 85 if(!$tools_options){ 86 add_option('wprac-tools-options-custom',array( 87 'wprac_contact_api' => 'on', 88 'wprac_newsletter_api' => 'on' 89 ) ); 68 90 } 69 91 … … 107 129 108 130 /********************************** 131 * Hủy contact tools option 132 **********************************/ 133 delete_option('wprac-tools-options-custom'); 134 135 /********************************** 109 136 * Hủy contact config custom option 110 137 **********************************/ -
wp-rest-api-contact/trunk/readme.txt
r1658980 r1661938 5 5 Requires at least: 4.5 6 6 Tested up to: 4.7.4 7 Stable tag: 1.0. 47 Stable tag: 1.0.5 8 8 License: MIT 9 9 License URI: http://opensource.org/licenses/MIT … … 33 33 == Changelog == 34 34 35 = 1.0.5 = 36 * New Page: NPA Tools . 37 35 38 = 1.0.4 = 36 39 * Required token for API . … … 49 52 50 53 == Upgrade Notice == 54 55 = 1.0.5 = 56 * New Page: NPA Tools . 51 57 52 58 = 1.0.4 = … … 73 79 - Show the list all subscribers. 74 80 - Send mail to list all subscribers. 81 - Open / close modules of the WP REST API NPA plugin. -
wp-rest-api-contact/trunk/wp-rest-api-npa.php
r1658980 r1661938 5 5 Description: Create REST API endpoint for Contact and Subscribe Newsletter, manager to list all contacts, manager to list all subscribe newsletter, send mail to the list all subscibers. 6 6 Author: Thien Pham, NPA 7 Version: 1.0. 47 Version: 1.0.5 8 8 Author URI: https://www.facebook.com/thien.pham.5074 9 9 Text Domain: tp-custom … … 18 18 } 19 19 20 define('WPRAC_VERSION', '1.0. 4');20 define('WPRAC_VERSION', '1.0.5'); 21 21 define('WPRAC_MINIMUM_WP_VERSION', '4.6'); 22 22 define('WPRAC_PLUGIN_URL', plugin_dir_url(__FILE__)); … … 34 34 *******************/ 35 35 require_once(WPRAC_PLUGIN_DIR . 'includes/class.wprac-custom-controller.php'); 36 37 /******************* 38 * 39 *Include tools-controller 40 * 41 *******************/ 42 require_once(WPRAC_PLUGIN_DIR . 'includes/class.wprac-tools-controller.php'); 36 43 37 44 … … 56 63 WPRAC_Controller::run(); 57 64 58 //nganluong/f2a6bfe8a876f4d5016e6645d53c502759 65 60 66 61 67 62 68 63
Note: See TracChangeset
for help on using the changeset viewer.