\n <\/td>\n | <?php<\/span><\/td>\n <\/tr>\n \n <\/td>\n | /**<\/span><\/td>\n <\/tr>\n \n <\/td>\n | * Feature Name: Action Restrict (handles restrict and unrestrict)<\/span><\/td>\n <\/tr>\n \n <\/td>\n | * Author: Chris Knowles <\/span><\/td>\n <\/tr>\n \n <\/td>\n | * Author URI: http://premium.wpmudev.org<\/span><\/td>\n <\/tr>\n \n <\/td>\n | * Licence: GPLv3<\/span><\/td>\n <\/tr>\n \n <\/td>\n | */<\/span><\/td>\n <\/tr>\n \n <\/td>\n | \n<\/td>\n <\/tr>\n | \n <\/td>\n | add_action( 'sca_do_restrict_content'<\/span>, 'sca_restrict_content'<\/span> );<\/td>\n <\/tr>\n \n <\/td>\n | \n<\/td>\n <\/tr>\n | \n <\/td>\n | // add the post meta fields for Restrict Content plugin<\/span><\/td>\n <\/tr>\n \n <\/td>\n | function<\/span> sca_restrict_content<\/span>( \$<\/span>post_id<\/span> ) {<\/td>\n <\/tr>\n \n <\/td>\n | \n<\/td>\n <\/tr>\n | \n <\/td>\n | add_post_meta ( \$<\/span>post_id<\/span> , 'rcUserLevel'<\/span> , 'Subscriber'<\/span> );<\/td>\n <\/tr>\n \n <\/td>\n | add_post_meta ( \$<\/span>post_id<\/span> , 'rcFeedHide'<\/span> , 'on'<\/span> );<\/td>\n <\/tr>\n \n <\/td>\n | \n<\/td>\n <\/tr>\n | \n <\/td>\n | }<\/td>\n <\/tr>\n | \n <\/td>\n | \n<\/td>\n <\/tr>\n | \n <\/td>\n | add_action( 'sca_do_unrestrict_content'<\/span>, 'sca_unrestrict_content'<\/span> );<\/td>\n <\/tr>\n \n <\/td>\n | \n<\/td>\n <\/tr>\n | \n <\/td>\n | // remove post meta for Restrict Content plugin<\/span><\/td>\n <\/tr>\n \n <\/td>\n | function<\/span> sca_unrestrict_content<\/span>( \$<\/span>post_id<\/span> ) {<\/td>\n <\/tr>\n \n <\/td>\n | \n<\/td>\n <\/tr>\n | \n <\/td>\n | delete_post_meta ( \$<\/span>post_id<\/span> , 'rcUserLevel'<\/span> , 'Subscriber'<\/span> );<\/td>\n <\/tr>\n \n <\/td>\n | delete_post_meta ( \$<\/span>post_id<\/span> , 'rcFeedHide'<\/span> , 'on'<\/span> );<\/td>\n <\/tr>\n \n <\/td>\n | <\/td>\n <\/tr>\n | \n <\/td>\n | }<\/td>\n <\/tr>\n <\/table>\n<\/div>\n\n\n <\/div>\n\n <\/div>\n<\/div>\n\n <\/div>\n | | | | | | | | | | | | | | | | | |