C:\xampp\htdocs\landing\wp-includes\blocks\index.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php
/**
 * Used to set up all core blocks used with the block editor.
 *
 * @package WordPress
 */

// Include files required for core blocks registration.
require ABSPATH WPINC '/blocks/archives.php';
require 
ABSPATH WPINC '/blocks/block.php';
require 
ABSPATH WPINC '/blocks/calendar.php';
require 
ABSPATH WPINC '/blocks/categories.php';
require 
ABSPATH WPINC '/blocks/latest-comments.php';
require 
ABSPATH WPINC '/blocks/latest-posts.php';
require 
ABSPATH WPINC '/blocks/rss.php';
require 
ABSPATH WPINC '/blocks/search.php';
require 
ABSPATH WPINC '/blocks/shortcode.php';
require 
ABSPATH WPINC '/blocks/social-link.php';
require 
ABSPATH WPINC '/blocks/tag-cloud.php';

/**
 * Registers core block types using metadata files.
 * Dynamic core blocks are registered separately.
 *
 * @since 5.5.0
 */
function register_core_block_types_from_metadata() {
    
$block_folders = array(
        
'audio',
        
'button',
        
'buttons',
        
'classic',
        
'code',
        
'column',
        
'columns',
        
'embed',
        
'file',
        
'gallery',
        
'group',
        
'heading',
        
'html',
        
'image',
        
'list',
        
'media-text',
        
'missing',
        
'more',
        
'nextpage',
        
'paragraph',
        
'preformatted',
        
'pullquote',
        
'quote',
        
'separator',
        
'social-links',
        
'spacer',
        
'subhead',
        
'table',
        
'text-columns',
        
'verse',
        
'video',
    );

    foreach ( 
$block_folders as $block_folder ) {
        
register_block_type_from_metadata(
            
ABSPATH WPINC '/blocks/' $block_folder
        
);
    }
}
add_action'init''register_core_block_types_from_metadata' );
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586