You appear to be a bot. Output may be restricted
Description
Disable WordPress from giving update notifications on Genesis or Genesis child themes.
This function filters the value that is saved after WordPress tries to pull theme update transient data from WordPress.org Its purpose is to disable update notifications for Genesis and Genesis child themes. This prevents WordPress.org repo themes from being installed over one of our themes.
Usage
$object = genesis_disable_wporg_updates( $value );
Parameters
- $value
- ( object ) required – Update check object.
Returns
object Update check object.
Source
File name: genesis/lib/functions/upgrade.php
Lines:
1 to 14 of 14
function genesis_disable_wporg_updates( $value ) { foreach ( wp_get_themes() as $theme ) { if ( 'genesis' === $theme->get( 'Template' ) ) { unset( $value->response[ $theme->get_stylesheet() ] ); } } return $value; }