• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Genesis Theme Framework a2z

Genesis Theme Framework a2z

WordPress Dynamic API Reference

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / genesis_disable_wporg_updates() – Disable WordPress from giving update notifications on Genesis or Genesis child themes.

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;

}
 

Published: 25th November 2019 | Last updated: 25th November 2019

Primary Sidebar

Information

Function name: genesis_disable_wporg_updates
Plugin ref: Genesis Framework
Version: 3.3.3
Sourcefile: lib/functions/upgrade.php
File ref: lib/functions/upgrade.php
Deprecated?: No
API Letters: D,G,U,W

Footer

Genesis a2z
Genesis Theme Framework a2z
WordPress Dynamic API Reference
WordPress 5.6
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  genesis.wp-a2z.org
© Copyright Genesis a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites