• Resolved Philipp Bammes

    (@tyrannous)


    Great plugin!

    I noticed you call get_post_meta( $post->ID, 'rcp_user_level', true ); five times in includes/display-functions.php. Wouldn’t it be better to turn these calls into a function? A benefit would be that developers could use this functions in their third party code without the need to know the exact post meta key (CRUD).

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add function to check if page is restricted’ is closed to new replies.