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

Getting all woocommerce products from REST API call in plugin

I was close to the answer here, but held back by being unfamiliar with how global WordPress can be, and how that can be used to extend plugins. All I needed to do was wrap the plugin logic in a check for the presence of Woocommerce: if ( in_array( ‘woocommerce/woocommerce.php’, apply_filters( ‘active_plugins’, get_option( ‘active_plugins’ ) … Read more

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