/home/techb158/balacoffee.com/wp-content/plugins/wpforms/src/Admin/Education/Builder
Edit: /home/techb158/balacoffee.com/wp-content/plugins/wpforms/src/Admin/Education/Builder/Payments.php (1523B)
addons->get_by_category( $this->get_name() );
// Make Stripe at the top of the list.
foreach ( $addons as $key => $addon ) {
if ( $addon['slug'] !== 'wpforms-stripe' ) {
continue;
}
$addon['recommended'] = true;
unset( $addons[ $key ] );
array_unshift( $addons, $addon );
break;
}
return $addons;
}
/**
* Template name for rendering single addon item.
*
* @since 1.6.6
*
* @return string
*/
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.
*
* @since 1.6.6
*/
public function filter_addons() {
$this->filter_not_allowed_addons( 'wpforms_payments_panel_sidebar' );
}
}