Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Maniou

    (@maniou)

    ajax-load-more.php
    starting at line 391

    if($post_status != 'publish'){
          		// If not 'publish', confirm user has rights to view these old posts.
          		if (current_user_can( 'edit_theme_options' )){
             		$post_status = $post_status;
                } else {
                   $post_status = 'publish';
                }
    			$post_status = $post_status;
             }

    Instead of checking if the user is an admin can we check instead if the user is the owner of the post ?

    It’s important my users need to list their own posts when they are with the status pending or draft. (They can add post from the front office).

    Plugin Author Darren Cooney

    (@dcooney)

    Can you use the alm_modify_query_args() filter?
    https://connekthq.com/plugins/ajax-load-more/docs/filter-hooks/

    Thread Starter Maniou

    (@maniou)

    I can try,
    What you are doing on line 391 is done before the alm_modify_query_args() ?

    Plugin Author Darren Cooney

    (@dcooney)

    yes

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘posts_status (draft & pending) for log user’ is closed to new replies.