A filter to modify the default create status of a SlideDeck. By default a SlideDeck when it is created exists as an auto-draft post entry, which is changed to publish upon being saved.
To modify the default status of a SlideDeck when it is created, you would hook into this filter with the following code:
<?php add_filter( 'slidedeck_default_create_status', 'my_function_name', 10, 2 ); ?>
The slidedeck_default_create_status filter receives two parameters:
(string) The default create status of the SlideDeck auto-draft by default
(array) The source(s) that the SlideDeck is being created with. This will be an array of source slugs ("rss", "youtube", etc.)
Return a string value with a valid Post status value that WordPress will recognize.
Located In File: