Adding Amchart Interface to WordPress API

I was able to find a solution here. Add this to $args in setup.php ‘show_in_rest’ => true, ‘rest_base’ => ‘charts’ Add this to the bottom of the setup.php file. fistly, you’re registering the fields to get/set in the rest interface. then you’re registering the specific meta data to the post_type = amchart add_action(“rest_api_init”, function () … Read more

Get total count of records in WP GraphQL API

Kind of figured it out. It’s possible to extend existing schema with custom properties that will have their own callbacks-resolvers. Reference to custom types in the documentation. Place this class to your functions.php class GQLRegister { var $itemName = null; var $itemProps = null; var $responseName = null; var $responseParams = null; var $responseParamsFunction = … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)