Import legacy nurinda.co.id website
This commit is contained in:
1 parent
3f59bb9038
commit
6e21646ac4
13389 files changed
+3246690
No files matched your search
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace Gutenberg_Courses\Example_Blocks;
|
||||
|
||||
//add_filter( 'register_post_type_args', __NAMESPACE__ . '\add_template_to_post_type', 20, 2 );
|
||||
function add_template_to_post_type( $args, $post_type ) {
|
||||
|
||||
if ( 'post' !== $post_type ) {
|
||||
return $args;
|
||||
}
|
||||
|
||||
$args['template_lock'] = true;
|
||||
$args['template'] = [
|
||||
[
|
||||
'core/image',
|
||||
[
|
||||
'align' => 'left',
|
||||
],
|
||||
],
|
||||
[
|
||||
'core/paragraph',
|
||||
[
|
||||
'placeholder' => 'The only thing you can add',
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
return $args;
|
||||
}
|
||||
Reference in new issue
Block a user