gravityflowfolders_render_folder_id

Description

The gravityflowfolders_render_folder_id allows customization of which folder is rendered

Parameters

ParameterTypeDefinition
$folder_idIntegerFolder name / ID from shortcode arguments.
$argsargsShortcode arguments.
$userWP_UserUser 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?