8000 Filter stencil_force_permalink removes the ability to set query_vars · Issue #2 · moorscode/stencil · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000
Filter stencil_force_permalink removes the ability to set query_vars #2
Open
@wgroenewold

Description

@wgroenewold

When I want to add a query var with:

function add_query_var( $public_query_vars ) {
    $public_query_vars[] = 'horse';

    return $public_query_vars;
}

it gets overridden by stencil_force_permalinks. A workaround is

add_filter( 'stencil_force_permalink', function(){return false;} );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0