get( self::SETTING, self::CUSTOMER ); } /** * Adds the row to Portal, after the returns policy page. * * @param array $fields Rows of the section. * @param string $section Section key. * @return array */ public static function fields( $fields, $section = '' ) { $fields = (array) $fields; if ( 'portal' === $section ) { $fields[ self::SETTING ] = array( 'position' => 40, 'render' => array( __CLASS__, 'render' ), ); } return $fields; } /** * The row: the customer or the shop, in a fieldset. * * @param array $s Stored settings. * @param string $screen Screen id. * @param Settings $settings The screen's settings. * @return void */ public static function render( array $s, $screen = '', $settings = null ) { unset( $screen, $s ); $settings = $settings instanceof Settings ? $settings : new Settings(); $shop = self::shop_pays( $settings ); $label = __( 'Who pays for sending the goods back', 'careback' ); ?>