Skip to content

Commit

Permalink
Use plugins_loaded instead of init as hook
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Nov 29, 2022
1 parent 0dd6a78 commit f654f6f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -211,4 +211,4 @@ function _gutenberg_clean_theme_json_caches() {
function _gutenberg_add_non_persistent_theme_json_cache_group() {
wp_cache_add_non_persistent_groups( 'theme_json' );
}
add_action( 'init', '_gutenberg_add_non_persistent_theme_json_cache_group' );
add_action( 'plugins_loaded', '_gutenberg_add_non_persistent_theme_json_cache_group' );

0 comments on commit f654f6f

Please sign in to comment.