Skip to content

Commit

Permalink
Maybe its pointless to hook this onto the next round?
Browse files Browse the repository at this point in the history
  • Loading branch information
carstingaxion committed Sep 30, 2024
1 parent 41f6b3e commit 80a1c51
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions includes/core/classes/endpoints/class-endpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,10 @@ public function __construct(
$this->reg_ex = $reg_ex;
$this->object_type = $object_type;

$this->setup_hooks();
// Maybe its pointless to hook this onto the next round?
// $this->setup_hooks();
// Maybe just start ?
$this->init();
}
}

Expand All @@ -152,15 +155,14 @@ public function __construct(
* @since 1.0.0
*
* @return void
*/
protected function setup_hooks(): void {

global $wp_filter;
$current_filter = current_filter();
$current_priority = $wp_filter[ $current_filter ]->current_priority();
add_action( $current_filter, array( $this, 'init' ), $current_priority + 1 );
}
} */

/**
* Initializes the endpoint by registering rewrite rules and handling query variables.
Expand Down

0 comments on commit 80a1c51

Please sign in to comment.