Created
May 28, 2021 11:19
-
-
Save nikitasinelnikov/be3a798e907bb62effec50df9f696806 to your computer and use it in GitHub Desktop.
Ultimate Member v3: How to change templates path from WP native (child theme -> theme) to wp_uploads dir
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function um_custom_templates_path( $path, $template_name, $module ) { | |
$uploads_dir = wp_get_upload_dir(); | |
return $uploads_dir['basedir']; | |
} | |
add_filter( 'um_template_structure_custom_path', 'um_custom_templates_path', 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment