Member Access
Create New Page with member access only (1 post)

  1. animesatcom
    Posted 3 years ago #

    Good day,

    I have have a question.I am using this code

    $my_post = array(
    'post_parent' => 11,
    'post_type' => 'page',
    'post_title' => $post->post_title,
    'post_content' => 'Test',
    'post_status' => 'publish'
    wp_insert_post( $my_post );

    this code will create new page but how can I add a line of code that make it accessable by members only?

    Thank you for the Excellent plugin,


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Member Access
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic