getJSON response to PHP

After more reading and testing, i’ve realised that i misunderstood how AJAX works, therefore it was never gonna work the way i thought it would. For those who come across this, i hope this will help. In shortcode function i generated the api url with params specific to the page where shortcode is called. eg … Read more

Make plugin admin page visible to other roles

When the submenu is registered: add_submenu_page( ‘woocommerce’, __( ‘Betalingsmetoder’, ‘wcrb’ ), __( ‘Betalingsmetoder’, ‘wcrb’ ), ‘manage_options’, ‘payment-gateway-report’, ‘wcrb_report_page_callback’ ); You’ve specified that you only want it to be shown to users with the capability manage_options. So only administrators have that capability, so only administrators can see that page. It’s documented in the official WP docs … Read more