Skip to content
HivePress Docs
  • Development
    • Tutorials
      • Integrate your theme with HivePress
      • Create a custom HivePress extension
    • Framework
      • Blocks
        • Callback
        • Container
        • Content
        • Form
        • Menu
        • Modal
        • Part
        • Section
        • Template
        • Toggle
      • Components
        • Cache
        • Helper
        • Request
        • Router
        • Translator
      • Configurations
        • Comment types
        • Image sizes
        • Meta boxes
        • Post types
        • Scripts
        • Settings
        • Strings
        • Styles
        • Taxonomies
      • Controllers
      • Emails
      • Fields
        • Checkbox
        • Checkboxes
        • Date
        • Date range
        • Email
        • File
        • Number
        • Number range
        • Password
        • Phone
        • Radio buttons
        • Repeater
        • Select
        • Text
        • Textarea
        • Time
        • URL
      • Forms
      • Menus
      • Models
        • Making queries
        • Creating models
        • Customizing models
      • Templates
    • Resources
      • Code snippets
      • Code reference
      • Hook reference
      • REST API
  • Development
  • Development
      • Integrate your theme with HivePress
      • Create a custom HivePress extension
      • Blocks
        • Callback
        • Container
        • Content
        • Form
        • Menu
        • Modal
        • Part
        • Section
        • Template
        • Toggle
      • Components
        • Cache
        • Helper
        • Request
        • Router
        • Translator
      • Configurations
        • Comment types
        • Image sizes
        • Meta boxes
        • Post types
        • Scripts
        • Settings
        • Strings
        • Styles
        • Taxonomies
      • Controllers
      • Emails
      • Fields
        • Checkbox
        • Checkboxes
        • Date
        • Date range
        • Email
        • File
        • Number
        • Number range
        • Password
        • Phone
        • Radio buttons
        • Repeater
        • Select
        • Text
        • Textarea
        • Time
        • URL
      • Forms
      • Menus
      • Models
        • Making queries
        • Creating models
        • Customizing models
      • Templates
      • Code snippets
      • Code reference
      • Hook reference
      • REST API
Development Framework Blocks

Content

This block type renders the provided text or HTML content.

Parameters

  • content – text or HTML content to output.

Example

The code below outputs the “Hello World!” text.

echo ( new HivePress\Blocks\Content(
	[
		'content' => 'Hello World!',
	]
) )->render();
Container
Form
On this page
  1. Parameters
  2. Example