JavaScript for WordPress › Forums › Gutenberg Development › Get post id › Reply To: Get post id
September 12, 2018 at 3:23 pm
#57838
chrisdavies71
Participant
And finally the ajax.js file:
function ajax_load( query )
{
jQuery('#productlist').load('../wp-content/plugins/current-rms-for-wordpress-gutenberg/dist/assets/ajax.php?postid=&'+query);
}
ajax_load('query=product_groups');