load only an activitypub settings pages

This commit is contained in:
Matthias Pfefferle 2022-11-19 13:15:21 +01:00
parent aa4f6bce69
commit 6232bddcd7

View file

@ -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 ) {
if ( false !== strpos( $hook_suffix, 'activitypub' ) ) {
wp_enqueue_style( 'admin-styles', plugin_dir_url( __FILE__ ) . '../assets/css/admin.css', array(), '1.0.0' ); wp_enqueue_style( 'admin-styles', plugin_dir_url( __FILE__ ) . '../assets/css/admin.css', array(), '1.0.0' );
} }
} }
}