Astra_Get_Heading_Font::execute( array $args )
Execute the ability.
Description
Parameters
- $args
-
(array) (Required) Input arguments.
Return
(array) Result array.
Source
File: inc/abilities/customizer/globals/typography/class-astra-get-heading-font.php
public function execute( $args ) {
$tag = 'h' . $this->level;
return Astra_Abilities_Response::success(
/* translators: %s: heading tag */
sprintf( __( 'Retrieved %s font settings successfully.', 'astra' ), strtoupper( $tag ) ),
array(
'font_family' => astra_get_option( 'font-family-' . $tag, '' ),
'font_weight' => astra_get_option( 'font-weight-' . $tag, '' ),
'font_size' => astra_get_option( 'font-size-' . $tag, array() ),
'font_extras' => astra_get_option( $tag . '-font-extras', array() ),
)
);
}
Expand full source code Collapse full source code View on Trac