Что случилось с этим заявлением?

Эта функция возвращает содержимое файла, а результат fetch_link_settings_overide() внутри него.

Проблема заключается не в функции overide, поскольку после первоначальной ошибки я прокомментировал мою модификацию, чтобы быть уверенным, что это не то, что я там сделал.

 function fetch_link_settings(){ include( plugins_url()."/plugin-child/plugin_overrides.php"); return fetch_link_settings_override(); } 

Добавление содержимого производной функции plugin-child / plugin_overrides.php, поскольку мы нигде не встречаемся.

 function fetch_link_settings_override(){ global $post; // If the destination url is set by the user, use that. Otherwise, use the permalink $destination_url = get_post_meta($post->ID, '_promo_slider_url', true); // ASAdd additional place to look in the case of the post being via the PODS advert track if( ! $destination_url ) $destination_url = get_post_meta($post->ID, 'okd_advert_link', true); if( ! $destination_url ) $destination_url = get_permalink($post->ID); // If the target attribute is set by the user, use that. Otherwise, set it to _self $target = get_post_meta($post->ID, '_promo_slider_target', true); if( ! $target ) $target = '_self'; // Setup the disable links variable $disable_links = get_post_meta($post->ID, '_promo_slider_disable_links', true); return compact('destination_url', 'target', 'disable_links'); }