Skip Navigation

[Gelöst] Delete-Button

This support ticket is created vor 4 Jahren, 1 Monat. 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

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)

Dieses Thema enthält 6 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von martinB-16 vor 4 Jahren, 1 Monat.

Assistiert von: Minesh.

Author
Artikel
#1807719

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

#1808411

Minesh
Supporter

Sprachen: Englisch (English )

Zeitzone: 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

Sprachen: Englisch (English )

Zeitzone: 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

Sprachen: Englisch (English )

Zeitzone: 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!