top of page

Using Custom ACF Group in Block Editor

  • Writer: سُلَيْمَان بْن دَاوُوْد
    سُلَيْمَان بْن دَاوُوْد
  • Jul 30, 2021
  • 1 min read
/*register custom flexible section*/
add_action('acf/init', 'my_acf_init_block_types');
function my_acf_init_block_types() {

if( function_exists('acf_register_block_type') ) {
    acf_register_block_type(array(
    'name'              => 'flexible-content',
    'title'             => __('Flexible Content'),
    'description'       => __('A custom Flexible Content block.'),
    'render_template'   => 'templates/template-common.php',
    'category'          => 'formatting',
    'icon'              => 'admin-comments',
    'keywords'          => array( 'flexible' ),
    ));
}
}







 
 
 

Recent Posts

See All
Duplicate Category in Wordpress

The following code helps to duplicate the default wordpress category by help of code. // Add Duplicate option for categories in WordPress...

 
 
 
C#.NET and Its Associated Codes

1- Creating an Desktop Application in C#.NET C# ADO.NET & MySQL MAIN C# and MySQL ADO.NET with Crystals Reports Ready Code 2- Handling...

 
 
 

Comments


© 2020 by syednazrulhassan

bottom of page