rpress_registered_settings

Author: RestroPress 49 views

This filter can be used to add the setting fields on any section in restropress . The filter accepts one parameter.

return  apply_filters( ‘rpress_registered_settings’, $rpress_settings );
Example:

function rpress_add_restropress_settings( $rpress_settings ) {
   $rpress_settings = array(
      'id' => 'payment_privacy_status_action_' . $status,
      'name' => sprintf( _x( '%s Payments', 'payment status labels for the privacy export             & erase settings: Pending Payments', 'restropress' ), $label ),
      'desc' => '',
      'type' => 'select',
      'options' => $select_options,
      'std' => $action,
  );

  return $rpress_settings;
}
add_filter( 'rpress_registered_settings', 'rpress_add_restropress_settings', 20, 1 );