Skip to content

Commit

Permalink
Merge branch 'master' into fumikito-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
fumikito authored Jun 20, 2023
2 parents 8a7caed + 2e9a32e commit 548b9b4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Kunoichi/GaCommunicator/Utility/ScriptRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ class ScriptRenderer extends Singleton {
* Constructor.
*/
protected function init() {
add_action( 'wp_head', [ $this, 'render' ], 1 );
add_action( 'admin_head', [ $this, 'admin_render' ], 1 );
add_action( 'login_head', [ $this, 'login_render' ], 1 );
// Priority
$priority = (int) apply_filters( 'ga_communicator_head_priority', 2 );
add_action( 'wp_head', [ $this, 'render' ], $priority );
add_action( 'admin_head', [ $this, 'admin_render' ], $priority );
add_action( 'login_head', [ $this, 'login_render' ], $priority );
// Body open.
add_action( 'wp_body_open', [ $this, 'body_open' ], 1 );
add_action( 'in_admin_header', [ $this, 'admin_body_open' ], 1 );
Expand Down

0 comments on commit 548b9b4

Please sign in to comment.