ID ) ) { return false; } ?>

ID ) ); ?> />
ID ) ); ?> />
ID ) ) { return false; } ?>


<h1></h1>' ); ?>

ID ) ); ?> />
ID ) ); ?> />
ID ) ) { return false; } ?>

ID ) ); ?> />
ID ) ); ?> />
ID ) ); ?> />
ID ) ) { return false; } $layout = get_the_author_meta( 'layout', $user->ID ); $layout = $layout ? $layout : ''; ?>

/>

'meta[layout]', 'selected' => $layout, 'type' => 'site' ) ); ?>

'', 'bizznis_settings_menu' => '', 'bizznis_seo_settings_menu' => '', 'bizznis_author_box_single' => '', 'bizznis_author_box_archive' => '', 'headline' => '', 'intro_text' => '', 'doctitle' => '', 'meta_description' => '', 'noindex' => '', 'nofollow' => '', 'noarchive' => '', 'layout' => '', ) ); # Sanitize $meta['headline'] = strip_tags( $meta['headline'] ); $meta['intro_text'] = current_user_can( 'unfiltered_html' ) ? $meta['intro_text'] : bizznis_formatting_kses( $meta['intro_text'] ); foreach ( $meta as $key => $value ) { update_user_meta( $user_id, $key, $value ); } } /** * This filter function checks to see if user data has actually been saved, or if defaults need to be forced. * * @since 1.0.0 */ add_filter( 'get_the_author_bizznis_admin_menu', 'bizznis_user_meta_default_on', 10, 2 ); add_filter( 'get_the_author_bizznis_seo_settings_menu', 'bizznis_user_meta_default_on', 10, 2 ); function bizznis_user_meta_default_on( $value, $user_id ) { # Get the name of the field by removing the prefix from the active filter $field = str_replace( 'get_the_author_', '', current_filter() ); # If a real value exists, simply return it if ( $value ) { return $value; } # Setup user data if ( ! $user_id ) { global $authordata; } else { $authordata = get_userdata( $user_id ); } # Just in case $user_field = "user_$field"; if ( isset( $authordata->$user_field ) ) { return $authordata->user_field; } # If an empty or false value exists, return it if ( isset( $authordata->$field ) ) { return $value; } # If all that fails, default to true return 1; } /** * This is a special filter function to be used to conditionally force a default 1 value for each users' author box setting. * * @since 1.0.0 */ add_filter( 'get_the_author_bizznis_author_box_single', 'bizznis_author_box_single_default_on', 10, 2 ); function bizznis_author_box_single_default_on( $value, $user_id ) { if ( bizznis_get_option( 'author_box_single' ) ) { return bizznis_user_meta_default_on( $value, $user_id ); } else { return $value; } }