How can I change the status of a collection to unpublished? #8499
Answered
by
ryanmitchell
fernandogiroto
asked this question in
Q&A
-
I am trying through a query to put a news as not published. But the set does not work for the Published option. The published status still true.
|
Beta Was this translation helpful? Give feedback.
Answered by
ryanmitchell
Jul 27, 2023
Replies: 1 comment 1 reply
-
try |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
fernandogiroto
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
try
$new->unpublish();
instead