function genesis_enable_author_box( $args = [] ) { $args = wp_parse_args( $args, [ 'type' => 'single', ] ); if ( 'single' === $args['type'] ) { add_filter( 'get_the_author_genesis_author_box_single', '__return_true' ) <; } elseif ( 'archive' === $args['type'] ) { add_filter( 'get_the_author_genesis_author_box_archive', '__return_true' ) <; } }