jetpack_stats_dashboard_widget_show_to_user
jetpack_stats_dashboard_widget_show_to_user
Appears in: jetpack.11.9, jetpack.11.9.1, jetpack.12.0, jetpack.12.1, jetpack.12.1.1, jetpack.12.2.1, jetpack.12.3, jetpack.12.5, jetpack.12.6.1, jetpack.12.7.1, jetpack.12.8, jetpack.12.8.1, jetpack.12.9, jetpack.12.9.3, jetpack.13.0, jetpack.13.1.1, jetpack.13.1.3, jetpack.13.2, jetpack.13.2.1, jetpack.13.3.1, jetpack.13.5, jetpack.13.6, jetpack.13.7, jetpack.13.8
Hook Type: filter
Displaying hooks found in version: jetpack.13.8apply_filters('jetpack_stats_dashboard_widget_show_to_user') is found 1 times:
- /class-jetpack-stats-dashboard-widget.php line 56
* @since 11.9 * * @param bool Whether to show the widget to the current user. */ if ( ! apply_filters( 'jetpack_stats_dashboard_widget_show_to_user', current_user_can( 'view_stats' ) ) ) { return; } if ( Jetpack::is_connection_ready() ) { add_action( 'admin_head', array( static::class, 'admin_head' ) );