userpanel->get_user_profile_permalink($userid); } // User Pro | Profile Page URL if (class_exists('userpro_api')) { global $userpro; $profile_url = $userpro->permalink($userid); } } return $profile_url; } function wpforo_seo_clear(){ if(!wpforo_feature('seo-meta')) return; if (is_wpforo_page()) { remove_action('wp_head','jetpack_og_tags'); // JetPack} if (defined('WPSEO_VERSION')) { // Yoast SEO remove_action('wp_head','wpseo_head', 20); remove_action('wp_head','wpseo_opengraph', 20); add_filter( 'wpseo_canonical', '__return_false' ); add_filter( 'wpseo_title', '__return_false' ); add_filter( 'wpseo_metadesc', '__return_false' ); add_filter( 'wpseo_author_link', '__return_false' ); add_filter( 'wpseo_metakey', '__return_false' ); add_filter( 'wpseo_locale', '__return_false' ); add_filter( 'wpseo_opengraph_type', '__return_false' ); add_filter( 'wpseo_opengraph_image', '__return_false' ); add_filter( 'wpseo_opengraph_image_size', '__return_false' ); add_filter( 'wpseo_opengraph_site_name', '__return_false' ); add_filter( 'wp_seo_get_bc_title', '__return_false' ); add_filter( 'wp_seo_get_bc_ancestors', '__return_false' ); add_filter( 'wpseo_whitelist_permalink_vars', '__return_false' ); add_filter( 'wpseo_prev_rel_link', '__return_false' ); add_filter( 'wpseo_next_rel_link', '__return_false' ); add_filter( 'wpseo_xml_sitemap_img_src', '__return_false' ); } if (defined('AIOSEOP_VERSION')) { // All-In-One SEO global $aiosp; remove_action('wp_head',array($aiosp,'wp_head')); } remove_action('wp_head','rel_canonical'); remove_action('wp_head','index_rel_link'); remove_action('wp_head','start_post_rel_link'); remove_action('wp_head','adjacent_posts_rel_link_wp_head'); } } add_action( 'parse_query', 'wpforo_seo_clear' );