Add Delete Button on View Message Page?


Home Forums Front End PM PRO Add Delete Button on View Message Page?

This topic is: Not Resolved

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #17356
    Louie Veleski
    Participant

    Hi Shamim,
    I wonder how to add delete button on the view message page?
    I want user be able to delete the message when they are reading the message (on the view page).

    Is there any hook / functions that I can use?

    I noticed that there is fep_delete_message( $id ) inside Fep_Message but I’m not sure how to use it.

    Thank you!

    #17360
    shamim
    Keymaster

    You can add a link like <a href="http://example.com/index.php?your_action=delete&id=1">Delete</a>. Then in init hook use that function to delete that message. Check permission and nonce first if that user have permission to do so.

Viewing 2 posts - 1 through 2 (of 2 total)

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.