• Olá boa tarde eu sou um administrador do site e quero que o usuario paulo veja apenas uma postagem que eu criei a postagem com o nome laptop como faço isso no wordpress???

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Your desire is no matter what Paulo requests, the “laptop” post is served? You can use the “request” filter to do this. First verify what this filter normally passes for the laptop post. It should be something like ['page'=>'', 'name'=>'laptop']. In your “request” callback, get the current user and see if their login name is “paulo”. If it is, return the data related to the laptop post.

    This only works for normal WP front end requests. Paulo still can see his user profile and anything others are allowed to see that are not WP related, like static .html files.

Viewing 1 replies (of 1 total)
  • The topic ‘Mostrar uma postagem para o usuario’ is closed to new replies.