Skip to content

Commit

Permalink
カスタマイザの読み込みで after_setup_theme を経由するように変更
Browse files Browse the repository at this point in the history
  • Loading branch information
kurudrive committed Nov 12, 2024
1 parent f758b66 commit 929beed
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 4 additions & 2 deletions inc/contact-section/contact-section.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ public static function render_widget_contact_btn_html() {
/*
load files
/*-------------------------------------------*/
require_once 'customizer.php';

function veu_contact_section_load_customizer() {
require_once dirname( __FILE__ ) . '/customizer.php';
}
add_action( 'after_setup_theme', 'veu_contact_section_load_customizer' );


/*
Expand Down
6 changes: 5 additions & 1 deletion inc/sns/sns.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
Add Customize Panel
/*-------------------------------------------*/

require_once dirname( __FILE__ ) . '/sns_customizer.php';
function veu_sns_load_customizer() {
require_once dirname( __FILE__ ) . '/sns_customizer.php';
}
add_action( 'after_setup_theme', 'veu_sns_load_customizer' );

require_once dirname( __FILE__ ) . '/block/index.php';

function veu_sns_inline_styles() {
Expand Down

0 comments on commit 929beed

Please sign in to comment.