- added free extension;

- 3rd party integration;
- fixed CPT & Taxonomies titles;
This commit is contained in:
nikitasinelnikov
2019-07-11 19:02:16 +03:00
parent 17acd0eb82
commit 7151b8a183
4 changed files with 346 additions and 314 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 );
@@ -140,6 +141,16 @@ if ( ! class_exists( 'um\core\External_Integrations' ) ) {
}
/**
* Fixed ForumWP access to Forums message
*/
function forumwp_fix() {
if ( function_exists( 'FMWP' ) ) {
remove_filter( 'single_template', array( FMWP()->shortcodes(), 'cpt_template' ) );
}
}
/**
* @param $profile_url
* @param $page_id