web_development:wordpress:user-roles

Users/Roles/Capabilities

<?php
$post = get_post();
if ( current_user_can( 'edit_post_meta', $post->ID, '_email' )  && is_email( $_POST['email'] ) ) {
	update_post_meta( $post->ID, '_email', $_POST['email'] );
}
  • web_development/wordpress/user-roles.txt
  • Last modified: 2020/10/09 04:08
  • by jimboobrien