Home › Forums › Front End PM PRO › Need to Update Message Title from Reply Message Meta › Reply To: Need to Update Message Title from Reply Message Meta
November 1, 2019 at 8:24 pm
#30696
David
Participant
Hi again,
Ok, if I do this:
$message_reply = fep_get_message( 495 );
$message_reply->update( [ ‘mgs_title’ => ‘UPDATED TITLE HERE’ ] );
it works ok.
However, when I make it dynamic:
$message_parent = fep_get_parent_id(fep_get_the_id());
$message_reply = fep_get_message( $message_parent );
$message_reply->update( [ ‘mgs_title’ => ‘UPDATED TITLE HERE’ ] );
I get the error as mentioned before. I have checked the output of $message_reply and it is 495.
Even after a refresh it does not update.
Let me know what you need in order to have a look at the site.
Thanks for your help.