PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3
Jetpack – WP Security, Backup, Speed, & Growth v16.3
16.3 16.3-beta 16.3-a.5 16.3-a.7 16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 All 508 releases
jetpack / jetpack_vendor / automattic / jetpack-classic-theme-helper / src / compat / twentytwenty.php

twentytwenty.php in Jetpack – WP Security, Backup, Speed, & Growth 16.3, at jetpack_vendor/automattic/jetpack-classic-theme-helper/src/compat/twentytwenty.php

43 lines 978 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Jetpack Compatibility File
4 * See: https://jetpack.com/
5 *
6 * @package automattic/jetpack-classic-theme-helper
7 */
8
9 if ( ! 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 */
20 function 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 }
42 add_action( 'after_setup_theme', 'twentytwenty__jetpack_setup' );
43