wp-user-profiles icon indicating copy to clipboard operation
wp-user-profiles copied to clipboard

Allow all source files to be filtered

Open baden03 opened this issue 2 years ago • 1 comments

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 );

baden03 avatar Nov 15 '21 16:11 baden03

Just dropped in to see what condition my condition was in

baden03 avatar Dec 14 '21 20:12 baden03

Closing this pull request as it has been open for over a year with no response.

baden03 avatar Dec 21 '22 12:12 baden03