namespace WPForms\Admin\Education\Builder;
use \WPForms\Admin\Education;
* Builder/Payments Education feature.
class Payments extends Education\Builder\Panel {
protected function get_name() {
public function hooks() {
add_action( 'wpforms_payments_panel_sidebar', [ $this, 'filter_addons' ], 1 );
add_action( 'wpforms_payments_panel_sidebar', [ $this, 'display_addons' ], 500 );
* Get addons for the Payments panel.
protected function get_addons() {
return $this->addons->get_by_category( $this->get_name() );
* Template name for rendering single addon item.
protected function get_single_addon_template() {
return 'education/builder/providers-item';
* Ensure that we do not display activated addon items if those addons are not allowed according to the current license.
public function filter_addons() {
$this->filter_not_allowed_addons( 'wpforms_payments_panel_sidebar' );