twenty_twenty_one_generate_css example

// Return if the specified type doesn't exist.     if ( empty( $elements[ $type ] ) ) {
        return '';
    }

    // Include file if function doesn't exist.     if ( ! function_exists( 'twenty_twenty_one_generate_css' ) ) {
        require_once get_theme_file_path( 'inc/custom-css.php' ); // phpcs:ignore WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound     }

    // Return the specified styles.     return twenty_twenty_one_generate_css( // @phpstan-ignore-line.         implode( ',', $elements[ $type ] ),
        'font-family',
        implode( ',', $font_family[ $locale ] ),
        null,
        null,
        false
    );
}

/** * Print the first instance of a block in the content, and then break away. * * @since Twenty Twenty-One 1.0 * * @param string $block_name The full block type name, or a partial match. * Example: `core/image`, `core-embed/*`. * @param string|null $content The content to search in. Use null for get_the_content(). * @param int $instances How many instances of the block will be printed (max). Default 1. * @return bool Returns true if a block was located & printed, otherwise false. */
Home | Imprint | This part of the site doesn't use cookies.