__('AgencyX Blog', 'agencyx-blog'))
);
// Register block patterns
register_block_pattern(
'agencyx-blog/hero-section',
array(
'title' => __('Hero Section', 'agencyx-blog'),
'description' => __('A hero section with heading, text, and buttons', 'agencyx-blog'),
'categories' => array('agencyx-blog'),
'content' => '
' . __('Welcome to AgencyX Blog', 'agencyx-blog') . '
' . __('Create beautiful and engaging content with our customizable blocks.', 'agencyx-blog') . '
'
)
);
}
add_action('init', 'agencyx_blog_register_block_patterns');
/**
* Register Block Styles
*/
function agencyx_blog_register_block_styles()
{
// Register block style for quote block
register_block_style(
'core/quote',
array(
'name' => 'agencyx-fancy-quote',
'label' => __('Fancy Quote', 'agencyx-blog'),
'is_default' => false,
)
);
// Register block style for button block
register_block_style(
'core/button',
array(
'name' => 'agencyx-button-outline',
'label' => __('Outline Style', 'agencyx-blog'),
'is_default' => false,
)
);
}
add_action('init', 'agencyx_blog_register_block_styles');