wordpress/wp-content/themes/basic/themify/themify-admin.php
/**
 * Hijacks themes passed for upgrade checking and remove those from Themify
 *
 * This feature is only required for legacy themes without "themify-" prefix,
 * to prevent updates from wp.org overwriting theme files.
 *
 * @param Bool
 * @param Array $r List of themes
 * @param String $url URL of upgrade check
 * @return Array
 * @since 1.1.8
 */
Hijacks themes passed for upgrade checking and remove those from Themify
This feature is only required for legacy themes without "themify-" prefix,
to prevent updates from wp.org overwriting theme files.


Hijacks themes passed for upgrade checking and remove those from Themify This feature is only required for legacy themes without " themify - " prefix to prevent updates from wp . org overwriting theme files .
function themify_hide_themes( $response, $url ){
	if ( 0 === strpos( $url, 'https://api.wordpress.org/themes/update-check' ) ) {
		$themes = json_decode( $response['body']['themes'] );
		unset( $themes->themes->{get_option( 'template' )},$themes->themes->{get_option( 'stylesheet' )} );
		$response['body']['themes'] = json_encode( $themes );
	}
	return $response;
}
function themify_hide_themes ( $ response , $ url ) { if ( 0 === strpos ( $ url , 'https://api.wordpress.org/themes/update-check' ) ) { $ themes = json_decode ( $ response [ 'body' ] [ 'themes' ] ) ; unset ( $ themes -> themes -> { get_option ( 'template' ) } , $ themes -> themes -> { get_option ( 'stylesheet' ) } ) ; $ response [ 'body' ] [ 'themes' ] = json_encode ( $ themes ) ; } return $ response ; }
Hijacks themes passed for upgrade checking and remove those from Themify
 This feature is only required for legacy themes without "themify-" prefix,
 to prevent updates from wp.org overwriting theme files.
Hijacks themes passed for upgrade checking and remove those from Themify This feature is only required for legacy themes without " themify - " prefix to prevent updates from wp . org overwriting theme files .