apply_filters( 'learndash_ld_group_shortcode_atts', array $attribute, string $content )
Filters ld_group shortcode attributes.
Description #
Parameters #
- $attribute
-
(array) An array of ld_group shortcode attributes.
- $content
-
(string) Shortcode Content.
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php
/**
* Example usage for learndash_ld_group_shortcode_atts filter.
*/
add_filter(
'learndash_ld_group_shortcode_atts',
function( $attribute, $content ) {
// May add any custom logic using $attribute, $content.
// Always return $attribute.
return $attribute;
},
10,
2
);