We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to add sp_latitude and sp_longitude so that the data is visible in the api?
The text was updated successfully, but these errors were encountered:
Try following this advice I received from Themeboy support:
I've created code that adds the address information into the REST API response you are using. Here's the code snippet:
<?php /** * Add address information to the REST API route `wp-json/sportspress/v2/venues`. */ add_filter('rest_prepare_sp_venue', function ($data, $term, $request) { $data->data['custom_meta'] = get_option("taxonomy_$term->term_id"); return $data; }, 10, 3);
I recommend you inject this code into your website using the Code Snippets plugin. But, that's up to you. Thanks, Nabil
I recommend you inject this code into your website using the Code Snippets plugin. But, that's up to you.
Thanks, Nabil
I tried this and it worked for me
Sorry, something went wrong.
No branches or pull requests
How to add sp_latitude and sp_longitude so that the data is visible in the api?
The text was updated successfully, but these errors were encountered: