mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- added filter for fix #306 issue;
This commit is contained in:
@@ -351,6 +351,14 @@ if ( ! class_exists( 'Shortcodes' ) ) {
|
||||
* @param array $args
|
||||
*/
|
||||
function dynamic_css( $args = array() ) {
|
||||
|
||||
/*
|
||||
* for fix the issue #306
|
||||
*/
|
||||
$disable_css = apply_filters( 'um_disable_dynamic_global_css', false );
|
||||
if ( $disable_css )
|
||||
return '';
|
||||
|
||||
extract( $args );
|
||||
|
||||
include_once um_path . 'assets/dynamic_css/dynamic_global.php';
|
||||
|
||||
@@ -10,8 +10,6 @@ if ( ! class_exists( 'User_posts' ) ) {
|
||||
|
||||
function __construct() {
|
||||
|
||||
//add_filter('um_profile_tabs', array(&$this, 'add_tab'), 100);
|
||||
|
||||
add_action('um_profile_content_posts', array(&$this, 'add_posts') );
|
||||
add_action('um_profile_content_comments', array(&$this, 'add_comments') );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user