Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 21
0.00% covered (danger)
0.00%
0 / 1
CRAP
n/a
0 / 0
twentytwenty__jetpack_setup
0.00% covered (danger)
0.00%
0 / 18
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2/**
3 * Jetpack Compatibility File
4 * See: https://jetpack.com/
5 *
6 * @package automattic/jetpack-classic-theme-helper
7 */
8
9if ( ! defined( 'ABSPATH' ) ) {
10    exit( 0 );
11}
12
13/**
14 * Add Jetpack extra functionality to Twenty Twenty.
15 *
16 * See: https://jetpack.com/support/infinite-scroll/
17 * See: https://jetpack.com/support/responsive-videos/
18 * See: https://jetpack.com/support/content-options/
19 */
20function twentytwenty__jetpack_setup() {
21
22    // Add theme support for Content Options.
23    add_theme_support(
24        'jetpack-content-options',
25        array(
26            'post-details'    => array(
27                'stylesheet' => 'twentytwenty-style',
28                'date'       => '.post-date',
29                'categories' => '.entry-categories',
30                'tags'       => '.post-tags',
31                'author'     => '.post-author',
32            ),
33            'featured-images' => array(
34                'archive'  => true,
35                'post'     => true,
36                'page'     => true,
37                'fallback' => false,
38            ),
39        )
40    );
41}
42add_action( 'after_setup_theme', 'twentytwenty__jetpack_setup' );