Skip to content

Commit

Permalink
Fire gutenberg_register_webfonts_from_theme_json on after_setup_theme
Browse files Browse the repository at this point in the history
  • Loading branch information
zaguiini committed Mar 28, 2022
1 parent 9263fce commit 5dbbc48
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,4 @@ function gutenberg_add_registered_webfonts_to_theme_json( $data ) {
return $data;
}

add_action( 'wp_loaded', 'gutenberg_register_webfonts_from_theme_json' );
add_action( 'after_setup_theme', 'gutenberg_register_webfonts_from_theme_json' );

0 comments on commit 5dbbc48

Please sign in to comment.