add_filter( 'tptn_excerpt', 'just_ckeck', 10, 4 );
function just_ckeck( $output, $id, $excerpt_length, $use_excerpt ) {
return 111;
}
$xml_feed = 'http://linkToXMLFile.xml';
file_put_contents( 'data.xml', fopen( $xml_feed, 'r' ) );
$reader = new XMLReader();
$reader->open( 'data.xml' );
$doc = new DOMDocument;
while ( $reader->name === 'Cheto' ) {
$node = simplexml_import_dom( $doc->importNode( $reader->expand(), true ) );
$row = json_decode( json_encode( $node ), true );
// тут пишите в базу
$reader->next( 'Cheto' );
}