Skip to content

Commit

Permalink
テーマ変更時にテーマカスタムCSSファイルの書き出しをするように変更
Browse files Browse the repository at this point in the history
  • Loading branch information
yhira committed Nov 16, 2023
1 parent 658a084 commit 8eef5ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/admin.php
Expand Up @@ -590,6 +590,11 @@ function custmuize_load_edit_php(){
}
endif;

//テーマ変更時にテーマカスタマイザーCSSファイルの書き出し
add_action( 'after_switch_theme', function() {
put_theme_css_cache_file();
});

//投稿管理画面のヘッダーカスタマイズ
add_action( 'admin_head-post-new.php', 'add_head_post_custum' );
add_action( 'admin_head-post.php', 'add_head_post_custum' );
Expand Down

0 comments on commit 8eef5ce

Please sign in to comment.