This action hook is fired on Avada Builder initialization. Primarily used for adding elements to Avada Builder.
Copy to Clipboardfunction fusion_element_text() {
fusion_builder_map( array(
'name' => esc_attr__( 'Text Block', 'fusion-builder' ),
'shortcode' => 'fusion_text',
'params' => array(
array(
'type' => 'tinymce',
'heading' => esc_attr__( 'Content', 'fusion-builder' ),
'description' => esc_attr__( 'Enter some content for this textblock.', 'fusion-builder' ),
'param_name' => 'element_content',
'value' => esc_attr__( 'Placeholder text', 'fusion-builder' ),
),
),
) );
}
add_action( 'fusion_builder_before_init', 'fusion_element_text' ); 1function fusion_element_text() {2 fusion_builder_map( array(3 'name' => esc_attr__( 'Text Block', 'fusion-builder' ),4 'shortcode' => 'fusion_text',5 'params' => array(6 array(7 'type' => 'tinymce',8 'heading' => esc_attr__( 'Content', 'fusion-builder' ),9 'description' => esc_attr__( 'Enter some content for this textblock.', 'fusion-builder' ),10 'param_name' => 'element_content',11 'value' => esc_attr__( 'Placeholder text', 'fusion-builder' ),12 ),13 ),14 ) );15}16add_action( 'fusion_builder_before_init', 'fusion_element_text' );
fusion_builder_before_init
fusion_builder_before_init