RestroPress

⌘K
  1. Home
  2. Docs
  3. RestroPress
  4. Developer Docs
  5. Filters
  6. rpress_settings_gateways

rpress_settings_gateways

The rpress_settings_gateways filter is applied add payment gateways settings in Restropress.

 

function rpress_settings_gateways_callback( $gateway_settings ) {
     $rpress_tpay_settings = array(  array (
                                             'id' => 'rp_tpay_settings',
                                             'name' => '<strong> Restropress Tpay Settings</strong>',
                                             'desc' => 'Configure',
                                             'type' => 'header'
                                         ));

      $gateway_settings['restropresstpay'] = $rpress_tpay_settings;
}

add_filter( 'rpress_settings_gateways’, ' rpress_settings_gateways_callback', 10, 1 );

How can we help?