filter_input_post( 'wpseo_author_title' ) ) { check_admin_referer( 'wpseo_user_profile_update', 'wpseo_nonce' ); update_user_meta( $user_id, 'wpseo_title', $this->filter_input_post( 'wpseo_author_title' ) ); update_user_meta( $user_id, 'wpseo_metadesc', $this->filter_input_post( 'wpseo_author_metadesc' ) ); update_user_meta( $user_id, 'wpseo_metakey', $this->filter_input_post( 'wpseo_author_metakey' ) ); update_user_meta( $user_id, 'wpseo_excludeauthorsitemap', $this->filter_input_post( 'wpseo_author_exclude' ) ); } } /** * Add the inputs needed for SEO values to the User Profile page * * @param object $user */ public function user_profile( $user ) { if ( ! current_user_can( 'edit_users' ) ) { return; } $options = WPSEO_Options::get_all(); wp_nonce_field( 'wpseo_user_profile_update', 'wpseo_nonce' ); require_once( 'views/user-profile.php' ); } }