Skip to content

Commit

Permalink
provide method on Subject to get to the transformed post id
Browse files Browse the repository at this point in the history
  • Loading branch information
ashfame committed Dec 26, 2024
1 parent c055907 commit 63aaa79
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/plugin/class-subject.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,8 @@ public function id(): int {
public function author_id(): int {
return $this->author_id;
}

public function transformed_post_id(): int {
return absint( get_post_meta( $this->id, Transformer::META_KEY_LIBERATED_OUTPUT, true ) );
}
}

0 comments on commit 63aaa79

Please sign in to comment.