PATH:
home
/
letacommog
/
laindinois
/
OLD
/
wp-content
/
plugins
/
downtown-rest-api
/
classes
<?php add_action( 'rest_api_init', 'dwt_listing_all_categories', 0 ); function dwt_listing_all_categories() { register_rest_route( 'downtown/app', '/categories/', array( 'methods' => WP_REST_Server::READABLE, 'callback' => 'dwt_listing_all_cats', 'permission_callback' => function () { return dwt_listing_basic_auth(); }, ) ); } if (!function_exists('dwt_listing_all_cats')) { function dwt_listing_all_cats() { global $dwt_listing_api; $data['categories'] = dwt_listing_home_adsLayouts('all'); $data['search_input'] = __("Search Categories","asd"); return $response = array( 'success' => true, 'data' => $data, 'message' => ''); } }
[+]
..
[-] profile.php
[edit]
[-] listing-search.php
[edit]
[-] register.php
[edit]
[-] blog.php
[edit]
[-] reviews.php
[edit]
[-] login.php
[edit]
[+]
payments
[-] event-detail.php
[edit]
[-] author-listings.php
[edit]
[-] packages.php
[edit]
[-] categories.php
[edit]
[+]
packages
[-] events-search.php
[edit]
[-] fetch_data.php
[edit]
[-] home.php
[edit]
[-] listing-detail.php
[edit]
[+]
submit-listing
[+]
profile
[-] forget.php
[edit]
[-] settings.php
[edit]
[-] events.php
[edit]