Skip to content

Commit

Permalink
Merge pull request #77 from s3rgiosan/fix/wc-order-hpos
Browse files Browse the repository at this point in the history
Check if $post is instance of \WP_Post
  • Loading branch information
jeffpaul authored Apr 2, 2024
2 parents 4a39cbb + dc27839 commit 54de85e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions includes/UI/MetaBox.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ public function setup() {
}

public function add_meta_boxes( $post_type, $post ) {

if ( ! $post instanceof \WP_Post ) {
return;
}

// If we have any relationships to show on this page, their data will be injected here by filters
$relationships = apply_filters( 'tenup_content_connect_post_relationship_data', array(), $post );

Expand Down

0 comments on commit 54de85e

Please sign in to comment.