You appear to be a bot. Output may be restricted
Description
Implement AJAX oik_clone_post for oik-cloneWe use the same routine regardless of logged in status But we always validate the API key
Usage
oik_clone_nopriv_oik_clone_post();
Parameters
Returns
voidSource
File name: oik-clone/oik-clone.phpLines:
1 to 15 of 15
function oik_clone_nopriv_oik_clone_post() { //bw_trace2(); oik_require( "admin/oik-clone-json.php", "oik-clone" ); $target_id = 0; add_filter( 'oik_validate_apikey', 'oik_clone_oik_validate_apikey', 10, 2 ); $continue = oik_clone_validate_apikey(); if ( $continue ) { oik_require( "admin/oik-clone-clone.php", "oik-clone" ); $target_id = oik_clone_lazy_clone_post(); } oik_clone_reply_with_json( $target_id ); bw_backtrace(); bw_flush(); exit(); }View on GitHub