wp-user-profiles
wp-user-profiles copied to clipboard
Allow all source files to be filtered
Allows a single filter to override any source file as mentioned in issue #77 Now, to overwrite the default profile.php file all that would need to be done is something like:
function my_tabs( $files, $sources ){
$path = plugin_dir_path( __FILE__ );
$files[1] = $path . 'sections/profile.php';
$files[20] = $path . 'metaboxes/profile-name.php';
return $files;
}
add_filter( 'wp_user_profiles_core_files', 'my_tabs', 10, 2 );
Just dropped in to see what condition my condition was in
Closing this pull request as it has been open for over a year with no response.