Skip to content

Commit

Permalink
fix: set up PPMA capabilities on theme switch, not every load
Browse files Browse the repository at this point in the history
  • Loading branch information
paulschreiber committed Jun 28, 2023
1 parent d84df62 commit 17e8267
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class-terraso.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Terraso {
*/
public static function hooks() {
add_action( 'add_meta_boxes', [ __CLASS__, 'remove_meta_boxes' ] );
add_action( 'after_setup_theme', [ __CLASS__, 'add_ppma_capabilities' ] );
add_action( 'after_switch_theme', [ __CLASS__, 'add_ppma_capabilities' ] );
add_action( 'after_setup_theme', [ __CLASS__, 'setup' ] );
add_action( 'init', [ __CLASS__, 'help_rewrite' ] );
add_action( 'init', [ __CLASS__, 'kses_allow_additional_tags' ] );
Expand Down

0 comments on commit 17e8267

Please sign in to comment.