ID ) ) { return false; } ?>

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


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

ID ) ); ?> />
ID ) ); ?> />
ID ) ) { return false; } $layout = get_the_author_meta( 'layout', $user->ID ); $layout = $layout ? $layout : ''; $customize_url = add_query_arg( 'return', urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ), wp_customize_url() ); ?>

/>

'bizznis-meta[layout]', 'selected' => $layout, 'type' => 'site' ) ); ?>
'', 'bizznis_settings_menu' => '', 'bizznis_author_box_single' => '', 'bizznis_author_box_archive' => '', 'headline' => '', 'intro_text' => '', 'doctitle' => '', 'meta_description' => '', 'noindex' => '', 'nofollow' => '', 'noarchive' => '', 'layout' => '', ); /** * Filter the user meta defaults array. * * Allows developer to filter the default array of user meta key => value pairs. * * @since 1.2.0 * * @param array $defaults Default user meta array. */ $defaults = apply_filters( 'bizznis_user_meta_defaults', $defaults ); $meta = wp_parse_args( $_POST['bizznis-meta'], $defaults ); # 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 ); 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; } }