apply_filters( 'learndash_shortcode_atts', array $atts, string $shortcode_context )
Filters shortcode attributes.
Contents
Description #
Parameters #
- $atts
-
(array) An array of shortcode attributes.
- $shortcode_context
-
(string) The shortcode name for which the attributes are filtered.
Source #
Examples #
<?php /** * Example usage for learndash_shortcode_atts filter. */ add_filter( 'learndash_shortcode_atts', function( $atts, $shortcode_context ) { // May add any custom logic using $atts, $shortcode_context. // Always return $atts. return $atts; }, 10, 2 );