load only an activitypub settings pages
This commit is contained in:
parent
aa4f6bce69
commit
6232bddcd7
1 changed files with 4 additions and 2 deletions
|
@ -154,7 +154,9 @@ class Admin {
|
||||||
\Activitypub\get_identifier_settings( $user->ID );
|
\Activitypub\get_identifier_settings( $user->ID );
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function admin_style() {
|
public static function admin_style( $hook_suffix ) {
|
||||||
wp_enqueue_style( 'admin-styles', plugin_dir_url( __FILE__ ) . '../assets/css/admin.css', array(), '1.0.0' );
|
if ( false !== strpos( $hook_suffix, 'activitypub' ) ) {
|
||||||
|
wp_enqueue_style( 'admin-styles', plugin_dir_url( __FILE__ ) . '../assets/css/admin.css', array(), '1.0.0' );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue