Changeset 2896629
- Timestamp:
- 04/10/2023 01:46:06 PM (3 years ago)
- Location:
- pasazh/trunk
- Files:
-
- 2 edited
-
pasazh.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pasazh/trunk/pasazh.php
r2841766 r2896629 6 6 Plugin URI: https://epasazh.com 7 7 Description: با استفاده از این افزونه میتوانید فروشگاه خود را به پاساژ متصل نمایید. کافیست آن را فعال نمایید پس از آن به پنل مدیریت خودت در وب سایت پاساژ مراجعه نموده و ادامه مراحل جهت اتصال را تکمیل نمایید. 8 Version: 1. 88 Version: 1.9 9 9 Author: aliparsa 10 10 Author URI: https://profiles.wordpress.org/aliparsa/ … … 25 25 26 26 add_action('rest_api_init', function () { 27 register_rest_route('papi', '/products/count', array( 28 'methods' => 'GET', 29 'callback' => 'PASAZHAPI_products_count', 30 )); 31 }); 32 33 add_action('rest_api_init', function () { 27 34 register_rest_route('papi', '/info', array( 28 35 'methods' => 'GET', … … 49 56 return new WP_REST_Response($response, 200); 50 57 58 } 59 60 function PASAZHAPI_products_count(){ 61 return new WP_REST_Response(wp_count_posts('product'), 200); 51 62 } 52 63 -
pasazh/trunk/readme.txt
r2841766 r2896629 5 5 Requires at least: 5.0.3 6 6 Tested up to: 5.9.3 7 Stable tag: 1. 87 Stable tag: 1.9 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 23 23 == Screenshots == 24 24 == Changelog == 25 = 1. 8=25 = 1.9 = 26 26 * First release 27 27 == Upgrade Notice ==
Note: See TracChangeset
for help on using the changeset viewer.