Changeset 3150142
- Timestamp:
- 09/11/2024 01:56:11 PM (19 months ago)
- Location:
- leadinfo/trunk
- Files:
-
- 2 edited
-
leadinfo.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
leadinfo/trunk/leadinfo.php
r3073251 r3150142 32 32 register_uninstall_hook(__FILE__, 'leadinfo_uninstall'); 33 33 34 add_action('rest_api_init', function () { 35 register_rest_route('/leadinfo/v1', '/tracker_code', array( 36 'methods' => 'POST', 37 'callback' => 'add_leadinfo_tracker_code', 38 )); 39 }); 40 41 function add_leadinfo_tracker_code($data) { 42 if(empty($data['tracker_code'])){ 43 return; 44 } 45 46 update_option('leadinfo_id', $data['tracker_code']); 47 } 48 34 49 $leadinfo = new Leadinfo(); 35 50 $leadinfo->run(); -
leadinfo/trunk/readme.txt
r3125350 r3150142 3 3 Tags: leadinfo, lead, leads, b2b 4 4 Requires at least: 3.0.1 5 Tested up to: 6. 6.16 Stable tag: 1. 15 Tested up to: 6.4.3 6 Stable tag: 1.0 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.