Skip Navigation

[Closed] Please reinstate documentation for [cred_delete_post_link]

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 1 year, 4 months ago.

Assisted by: Mateus Getulio.

Author
Posts
#2627713

Tell us what you are trying to do?
Find the documentation for [cred_delete_post_link]

Is there any documentation that you are following?
https://toolset.com/documentation/programmer-reference/forms/cred-shortcodes/

Is there a similar example that we can see?
There seems to be documentation for cred_delete_post, but not for cred_delete_post_link. It's clearly still in use, as it's referred to in this recent support ticket https://toolset.com/forums/topic/cred_delete_post_link-shortcake/

Please advise on where I can find the documentation?
Thanks.

#2627749

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Neil

I don't think the documentation would have been removed from that list of shortcodes, I suspect it may have been omitted in the first place.

The function that handles the shortcode is self-documented in the plugin, let me share that with you here, and I will create a ticket for the documentation team and ask them to update that page to include it.

	/**
	 * Description: Display a link to delete a post
	 *
	 * Parameters:
	 * 'action'=> either 'trash' (sent post to Trash) or 'delete' (completely delete post)
	 * 'post' => [optional] Post ID of post to delete
	 * 'text'=> [optional] Text to use for link
	 * 'class'=> [optional] css class to apply to link
	 * 'style'=> [optional] css style to apply to link
	 * 'message'=> [optional] message to confirm action
	 *
	 * Example usage:
	 *
	 *  Display link for deleting car custom post with ID 145
	 * [cred_delete_post_link post="145" text="Delete this car"]
	 *
	 * There is also a php tag to use in templates and themes that has the same functionality as the shortcode
	 * <?php cred_delete_post_link($post_id, $text, $action, $class, $style); ?>
	 *
	 * Link:
	 *
	 *
	 * Note:
	 *  'post'> if post is omitted then current post_id will be used, for example inside Loop
	 *  'text'> can use meta-variables like %TITLE% and %ID%
	 *
	 *
	 * */

The topic ‘[Closed] Please reinstate documentation for [cred_delete_post_link]’ is closed to new replies.