Description
The gravityflowfolders_render_folder_id allows customization of which folder is rendered
Parameters
Parameter | Type | Definition |
---|---|---|
$folder_id | Integer | Folder name / ID from shortcode arguments. |
$args | args | Shortcode arguments. |
$user | WP_User | User to render folder entries for – specified by $args or wp_get_current_user. |
Examples
Example 1 –
Placeholder code.
add_filter( 'gravityflowfolders_render_folder_id', 'sh_gravityflowfolders_render_folder_id',10,3 ); function sh_gravityflowfolders_render_folder_id ($folder_id, $args, $user) { // Do some stuff here return $folder_id; }
Placement
This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.
See also the PHP section in this article: Where Do I Put This Code?