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.
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.