- 3rd party integration with ForumWP

- fixed labels for CPT and Taxonomies;
This commit is contained in:
nikitasinelnikov
2019-07-11 11:47:04 +03:00
parent b841e496b4
commit 77f950294f
2 changed files with 31 additions and 7 deletions
@@ -28,6 +28,7 @@ if ( ! class_exists( 'um\core\External_Integrations' ) ) {
add_action( 'um_access_fix_external_post_content', array( &$this, 'bbpress_no_access_message_fix' ), 10 );
add_action( 'um_access_fix_external_post_content', array( &$this, 'forumwp_fix' ), 11 );
add_filter( 'um_localize_permalink_filter', array( &$this, 'um_localize_permalink_filter' ), 10, 2 );
add_filter( 'icl_ls_languages', array( &$this, 'um_core_page_wpml_permalink' ), 10, 1 );
@@ -139,6 +140,15 @@ if ( ! class_exists( 'um\core\External_Integrations' ) ) {
remove_filter( 'template_include', 'bbp_template_include' );
}
/**
* Fixed bbPress access to Forums message
*/
function forumwp_fix() {
if ( function_exists( 'FMWP' ) ) {
remove_filter( 'single_template', array( FMWP()->shortcodes(), 'cpt_template' ) );
}
}
/**
* @param $profile_url