Check if page has been submitted to workflow?
Permalink
I'd like to determine if a version of a page has been saved, but not yet submitted to workflow.
How does one check if a page has been submitted to workflow? If you visit a page in edit mode that has been submitted to workflow it says so when you load the page, and similarly it says "pending approval" when it hasn't yet been submitted, so there must be a way to determine this status, but I can't seem to figure out how to get that status programmatically.
I have tried using isApproved() and isPageDraft() but they seem to be the same regardless of whether a page has been submitted to workflow or not.
How does one check if a page has been submitted to workflow? If you visit a page in edit mode that has been submitted to workflow it says so when you load the page, and similarly it says "pending approval" when it hasn't yet been submitted, so there must be a way to determine this status, but I can't seem to figure out how to get that status programmatically.
I have tried using isApproved() and isPageDraft() but they seem to be the same regardless of whether a page has been submitted to workflow or not.