Skip to content

Commit

Permalink
Merge pull request #86 from attackant/main
Browse files Browse the repository at this point in the history
Add default_post_types property to Zoninator class
  • Loading branch information
sjinks authored Oct 20, 2023
2 parents 7714d17 + 9faef50 commit ac677d5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions zoninator.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ class Zoninator
* @var Zoninator_Api
*/
public $rest_api = null;
/**
* @var array|string[] Default post types that support zones.
*/
public $default_post_types = array( 'post' );

function __construct() {
add_action( 'init', array( $this, 'init' ), 99 ); // init later after other post types have been registered
Expand All @@ -75,8 +79,6 @@ function __construct() {
add_action( 'split_shared_term', array( $this, 'split_shared_term' ), 10, 4 );

$this->maybe_add_rest_api();

$this->default_post_types = array( 'post' );
}

public function maybe_add_rest_api() {
Expand Down

0 comments on commit ac677d5

Please sign in to comment.