Skip Navigation

[Resolved] Delete-Button

This support ticket is created 3 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 1.18 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 6 replies, has 2 voices.

Last updated by martinB-16 3 years, 6 months ago.

Assisted by: Minesh.

Author
Posts
#1807719

How can you add a security query to a delete button or link?
Example "Are you sure?"

#1808411

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Are you talking about when you add link/button using Toolset form to delete the post from frontend? If no, can you please clarify at what point you expect to see such message?

#1809041

Hallo,

Fontend

#1809769

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Just to double check with you and to confirm - you are using the shortcode:
=> https://toolset.com/documentation/programmer-reference/forms/cred-shortcodes/#cred-delete-post

[cred-delete-post type="button" action="delete"]Delete  [/cred-delete-post]

Correct?

#1810571

Right.
That works too. But the button created by this code does not have the style parameters that a "proper" toolset button offers (e.g. icons).
Therefore I want to create a toolset button and use this shortcode in it.

#1810831

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please try to use the following shortcode instead of [cred-delete-post].

[cred_delete_post_link action="delete" text="Delete %TITLE%" message_after="Post deleted" message="Are you sure you want to delete this post?" message_show="1"]

Please let me know if that help you to solve the issue.

#1813077

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.