Advertisement
verygoodplugins

Untitled

Dec 5th, 2019
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.30 KB | None | 0 0
  1. function change_settings_position( $settings, $options ) {
  2.  
  3.     foreach ( $settings as $key => $setting ) {
  4.  
  5.         if ( $setting['section'] == 'main' ) {
  6.             $settings[$key]['section'] = 'setup';
  7.         }
  8.  
  9.     }
  10.  
  11.     return $settings;
  12.  
  13. }
  14.  
  15. add_filter( 'wpf_configure_settings', 'change_settings_position', 20, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement