'; $this->access_roles_html_select( $post ); echo ''; } /** * Print the select with roles for define restrict page. * * @since 1.0.0 * * @param WP_Post $post The post object. */ private function access_roles_html_select( $post ) { global $wp_roles; $roles = $wp_roles->get_names(); // Check if empty $post and define $post if ( empty( $post ) ) { $post = get_post(); } $select_role = get_post_meta( $post->ID, self::$text_domain . '_select_role', true ); // Field nonce for submit control wp_nonce_field( self::$text_domain . '_select_role', self::$text_domain . '_select_role_wpnonce' ); echo '
'; echo '

' . __( 'Please Select multiple role', 'wp-acl' ) . '

'; echo ''; echo '