Skip to content

Make Query String Test Use Default WordPress Functions #9

@tedmasterweb

Description

@tedmasterweb

Review the current Query String implementation and consider using the method below for removing the query string parameter.

function ratify_remove_ver_from_resources( $src ) {
    if( strpos( $src, 'ver=' ) ) {
        $src = remove_query_arg( 'ver', $src );
    }
    return $src;
}
add_filter( 'style_loader_src', 'ratify_remove_ver_from_resources', 9999 );
add_filter( 'script_loader_src', 'ratify_remove_ver_from_resources', 9999 );

The current method is clunky.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions