Contributing Code Changes
-
I’ve made a change to the plugin locally to introduce a filter that allows the page options presented in the ‘Redirect After Login’ field to be expanded.
For example, I’ve used this to allow private pages to be selected as follows:
add_filter( 'tlwp_pages_options', 'add_tlwp_pages_options', 10, 1 );
function add_tlwp_pages_options(array $pages): array
{
return array_merge($pages, (array) get_posts([
'post_type' => 'page',
'post_status' => 'private'
])
);
}I cannot find a public repo to contribute these changes to for other users to benefit from. Is there a public repo for this, or do you not accept community contributions?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.