filter_input_post( 'wpseo_nonce' ); if ( empty( $nonce_value ) ) { // Submit from alternate forms. return; } 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' ) ); update_user_meta( $user_id, 'wpseo_content_analysis_disable', $this->filter_input_post( 'wpseo_content_analysis_disable' ) ); update_user_meta( $user_id, 'wpseo_keyword_analysis_disable', $this->filter_input_post( 'wpseo_keyword_analysis_disable' ) ); } /** * Add the inputs needed for SEO values to the User Profile page * * @param WP_User $user User instance to output for. */ public function user_profile( $user ) { $options = WPSEO_Options::get_option( 'wpseo_titles' ); wp_nonce_field( 'wpseo_user_profile_update', 'wpseo_nonce' ); require_once( 'views/user-profile.php' ); } }