Correct implementation of new mark_complete()
-
I am trying to implement the llms_mark_complete() you mention here but can’t seem to get it working.
I have a jquery .click() event firing an ajax post method to a .php file in the child-theme folder…
$('.custom-complete').click(function myAjax() { console.log('ajax started') $.ajax({ method: "POST", url: '/wp-content/themes/hedmark-child/ajax.php', data:{action:'call_this'}, success:function(html) { alert(html); console.log('success') } }); console.log('ajax ended') });
Within this php I added the highlighted section in your above link… Is this the correct method of implementation? Is there an easier way to implement (functions.php)?
Sorry PHP is isn’t my strongest suit. (our use case is to mark complete then move to a custom url that isn’t the next lesson).
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Correct implementation of new mark_complete()’ is closed to new replies.