plugins – Limit the content based on the date of the user registration

I think a good starting point would be the use of pre_get_posts Hook to filter all queries, and then limit the query using the user registration date.

To extend the answer, this would be a good framework for a function that filters by date and combines both linked resources:

add_action (& # 39; pre_get_posts & # 39 ;, & # 39; date_filter & # 39;);
Function date filter ($ query) {

if (! is_admin () && $ query-> is_main_query ()) {

$ current_user_id = get_current_user_id ();
$ userdata = get_userdata ($ current_user_id);
$ date = date (& # 39; Y-m-d H: i: s & # 39 ;, $ userdata-> user_registered); // Format the user-registered time according to your locale
$ query-> set (& # 39; date_query & # 39 ;, 
      [    [
        'after'     => $date,
        'inclusive' => true,
      ]    ]);

}
}