Skip to content

Conversation

@saifsultanc
Copy link
Contributor

Context

⛑️ Ticket(s): https://secure.helpscout.net/conversation/2849211669/78114

Summary

Added filter similar to GPNF's template filter here.

This filter could be utilized as follows:

add_filter( 'gwaft_template_output', function( $content, $slug, $name, $data, $suffixes ) {
    // Modify the content as needed.
    if ( in_array( 'collapsible', $suffixes ) ) {
        $content .= 'whatever we like';
    }
    return $content;
}, 10, 5 );

@saifsultanc saifsultanc requested a review from spivurno February 28, 2025 06:18
@spivurno spivurno merged commit d678951 into master Feb 28, 2025
0 of 2 checks passed
@spivurno spivurno deleted the saif/add/78114-template-filter branch February 28, 2025 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants