Found a solution!!!
wpseo-functions.php has the function schedule_yoast_tracking()
so i linked wpseo-functions.php to wpseo-non-ajax-functions.php
just add
require_once( WPSEO_PATH . 'inc/wpseo-functions.php' );
after
require_once( WPSEO_PATH . 'inc/class-sitemap-walker.php' );
example:
<?php
/**
* @package Internals
*/
require_once( WPSEO_PATH . 'inc/class-sitemap-walker.php' );
require_once( WPSEO_PATH . 'inc/wpseo-functions.php' );
if ( ! defined( 'WPSEO_VERSION' ) ) {
header( 'HTTP/1.0 403 Forbidden' );
die;
}
/**
* Flush the rewrite rules.
*/
Regards Kevin Da Thesta – Vedicom Security Systems