Mika MAtikainen
Apr 15, 2020 · 4 min read
How to Fix the get_plugin() Error on AyeCode Connect Screen in WordPress?
function wpscayecode_connect_early_get_plugins_filter_fix( $headers = array() ) {
$headers_extra = array(
'UpdateURL' => 'Update URL',
'UpdateID' => 'Update ID',
);
$all_headers = array_merge( $headers_extra, (array) $headers );
return $all_headers;
}
add_filter( 'extra_plugin_headers', 'wpsc_ayecode_connect_early_get_plugins_filter_fix' );