Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Make getting redirect options more flexible #271
I'm currently trying to fetch meta data of a translated version of a post.
I'm using an instance of the MLP_Language_Negotiation for this.
$validator = new \Mlp_Language_Header_Validator(); $parser = new \Mlp_Accept_Header_Parser( $validator ); $api = apply_filters( 'mlp_language_api', null ); // ... $language_negotiation_instance = new \Mlp_Language_Negotiation( $api, $parser );
With the Language_negotiation I get the best matching translation for a page, which is not the page I'm currently on), for which I want to fetch meta data.
What's Included in This Pull Request