/home/vianto5/.trash/cititower.mx/wp-content/plugins/wpforms/src/Admin/Education
Edit: /home/vianto5/.trash/cititower.mx/wp-content/plugins/wpforms/src/Admin/Education/AddonsItemBase.php (1963B)
allow_load() ) {
return;
}
// Store the instance of the Education core class.
$this->education = wpforms()->obj( 'education' );
// Store the instance of the Education\Addons class.
$this->addons = wpforms()->obj( 'addons' );
// Define hooks.
$this->hooks();
}
/**
* Hooks.
*
* @since 1.6.6
*/
abstract public function hooks();
/**
* Display single addon item.
*
* @since 1.6.6
*
* @param array $addon Addon data.
*/
protected function display_single_addon( $addon ) {
/**
* Filter to disallow addons to be displayed in the Education feature.
*
* @since 1.8.2
*
* @param bool $display Whether to hide the addon.
* @param array $slug Addon data.
*/
$is_disallowed = (bool) apply_filters( 'wpforms_admin_education_addons_item_base_display_single_addon_hide', false, $addon );
if ( empty( $addon ) || $is_disallowed ) {
return;
}
echo wpforms_render( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
$this->single_addon_template,
$addon,
true
);
}
}