Title: Contributing Code Changes
Last modified: January 2, 2025

---

# Contributing Code Changes

 *  Resolved [Jack Whitworth](https://wordpress.org/support/users/benefaction/)
 * (@benefaction)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/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:
 *     ```wp-block-code
       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)

 *  Plugin Author [Icegram](https://wordpress.org/support/users/icegram/)
 * (@icegram)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/contributing-code-changes/#post-18225224)
 * Hi,
   Thank you for the update.Its a intresting to know this code.But did you get
   to look at this filter instead “tlwp_login_redirect”.It will help you achieve
   this. Also many people only want to redirect to the public pages so we have included
   only public pages.You may want to extend the above filter and achieve the same.
   Hope this helps you.
 *  Thread Starter [Jack Whitworth](https://wordpress.org/support/users/benefaction/)
 * (@benefaction)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/contributing-code-changes/#post-18229616)
 * Thanks for letting me know about that hook.
 * I gather then that community contributions aren’t something you work with, so
   I’ll mark this as resolved.
 * Cheers again!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Contributing Code Changes’ is closed to new replies.

 * ![](https://ps.w.org/temporary-login-without-password/assets/icon-256x256.png?
   rev=2966454)
 * [Temporary Login Without Password](https://wordpress.org/plugins/temporary-login-without-password/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/temporary-login-without-password/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/temporary-login-without-password/)
 * [Active Topics](https://wordpress.org/support/plugin/temporary-login-without-password/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/temporary-login-without-password/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/temporary-login-without-password/reviews/)

## Tags

 * [contribution](https://wordpress.org/support/topic-tag/contribution/)
 * [page options](https://wordpress.org/support/topic-tag/page-options/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jack Whitworth](https://wordpress.org/support/users/benefaction/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/contributing-code-changes/#post-18229616)
 * Status: resolved