You appear to be a bot. Output may be restricted
Description
Update the parsed objectThe object has been parsed again so we need to update it
Usage
$ID = bw_update_parsed_object( $parsed_source, $content, $filename );
Parameters
- $parsed_source
- ( post ) required – the current parsed object
- $content
- ( string ) required – the new content
- $filename
- ( string ) required – the parsed file full name
Returns
ID the post ID of the updated postSource
File name: oik-shortcodes/classes/class-oiksc-parsed-source.phpLines:
1 to 9 of 9
function bw_update_parsed_object( $parsed_source, $content, $filename ) { bw_backtrace( BW_TRACE_VERBOSE ); bw_trace2( null, null, true, BW_TRACE_DEBUG ); $parsed_source->post_content = $content; $_POST['_oik_parse_count'] = filemtime( $filename ); wp_update_post( $parsed_source ); return( $parsed_source->ID ); }View on GitHub