Astra_Abstract_Ability::get_show_in_rest()
Get whether to show this ability in the REST API.
Description
Return
(bool)
Source
File: inc/abilities/class-astra-abstract-ability.php
public function get_show_in_rest() {
/**
* Filter whether to show this ability in the REST API.
*
* @param bool $show_in_rest Whether to show in REST API. Default true.
* @param string $ability_id The ability ID (e.g. 'astra/get-font-body').
* @param self $ability_instance The ability instance.
* @since 4.12.6
*/
/** @psalm-suppress TooManyArguments -- WordPress apply_filters accepts variadic args for filter callbacks. */
return apply_filters( 'astra_ability_show_in_rest', true, $this->id, $this );
}
Expand full source code Collapse full source code View on Trac