Skip to content

Commit

Permalink
Add post status to WP_Query to allow fetching of trash events
Browse files Browse the repository at this point in the history
  • Loading branch information
trymebytes committed Oct 15, 2024
1 parent 86ed8a4 commit f06ff54
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@

$query = new \WP_Query(
array(
'p' => intval( $attributes['id'] ),
'post_type' => Translation_Events::CPT,
'p' => intval( $attributes['id'] ),
'post_type' => Translation_Events::CPT,
'post_status' => array( 'publish', 'draft', 'trash' ),
)
);

Expand Down

0 comments on commit f06ff54

Please sign in to comment.