Automattic\WooCommerce\Blocks\BlockTypes\OrderConfirmation
AbstractOrderConfirmationBlock::get_hook_content
Get the content from a hook and return it.
Method of the class: AbstractOrderConfirmationBlock{}
Hooks from the method
Returns
String.
Usage
// protected - for code of main (parent) or child class $result = $this->get_hook_content( $hook, $args );
- $hook(string) (required)
- Hook name.
- $args(array) (required)
- Array of args to pass to the hook.
AbstractOrderConfirmationBlock::get_hook_content() AbstractOrderConfirmationBlock::get hook content code WC 10.3.6
protected function get_hook_content( $hook, $args ) {
ob_start();
// phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment
do_action_ref_array( $hook, $args );
return ob_get_clean();
}