Request (quick): Add filter for final attrs
-
I’m finding that I could REALLY use to be able to filter the final attrs being passed after processing the shortcode. Ultimately, this came up because I want to include/exclude sticky posts. Simple addition:
function post_list( $atts=array() ) {
...
$atts = apply_filters( 'post-content-shortcodes-atts', $atts );
/**
* Output a little debug info if necessary
*/
...
}
The topic ‘Request (quick): Add filter for final attrs’ is closed to new replies.