- This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
-
AuthorPosts
-
October 4, 2024 at 9:19 am #26708
Justin
Guestevery developer should know you can do this with Git Updater with a simple snippet, add this to the main file (preferrably) of any WordPress plugin you are hosting on GitHub to prevent WordPress.org trying to send update versions to that plugin or theme on your site.
add_filter( 'gu_override_dot_org', function ( $overrides ) { return array_merge( $overrides, array( 'plugin-folder/main-script.php' ) ); } );October 4, 2024 at 9:21 am #26709October 4, 2024 at 9:22 am #26711Barbara
Guestlol, of course this helpful question was down-voted on Stack Overflow!
October 4, 2024 at 9:25 am #26712Brittany
GuestSO has been worthless for years 🤷♂️🤷♂️
October 4, 2024 at 9:26 am #26713October 4, 2024 at 9:28 am #26714Carolyn
GuestLittleBizzy also uses this “simple” version:
// Disable WordPress.org updates for this plugin add_filter( 'gu_override_dot_org', function( $overrides ) { $overrides[] = 'seo-genius/seo-genius.php'; return $overrides; }, 999 );The 999 priority ensures it fires after pretty much everything else…
October 4, 2024 at 9:31 am #26715Frank
GuestOctober 8, 2024 at 3:02 am #26730Patrick
Guestbrilliant little snippet 💯
-
AuthorPosts
Viewing 8 posts - 1 through 8 (of 8 total)