settings = new Display_Featured_Image_Genesis_Settings(); $this->name = 'displayfeaturedimagegenesis'; // current user add_action( 'profile_personal_options', array( $this, 'do_author_fields' ) ); add_action( 'personal_options_update', array( $this, 'save_profile_fields' ) ); // not current user add_action( 'edit_user_profile', array( $this, 'do_author_fields' ) ); add_action( 'edit_user_profile_update', array( $this, 'save_profile_fields' ) ); } function do_author_fields( $user ) { $id = get_the_author_meta( $this->name, $user->ID ); echo '
| '; echo ' | ';
if ( $id ) {
echo wp_kses_post( $this->settings->render_image_preview( $id ) );
}
$this->settings->render_buttons( $id, $this->name );
echo ' Upload an image to use as your author page featured image. '; echo ' | ';
echo '
|---|