Automattic\WooCommerce\EmailEditor\Integrations\Core\Renderer\Blocks
Embed::create_fallback_attributes
Create fallback attributes for link rendering.
Method of the class: Embed{}
No Hooks.
Returns
Array. Fallback attributes.
Usage
// private - for code of main (parent) class only $result = $this->create_fallback_attributes( $url, $label ): array;
- $url(string) (required)
- URL for the fallback.
- $label(string) (required)
- Label for the fallback.
Embed::create_fallback_attributes() Embed::create fallback attributes code WC 10.9.4
private function create_fallback_attributes( string $url, string $label ): array {
return array(
'url' => $url,
'label' => $label,
);
}