跳转到主要内容

0054-actions-graphql-admin-notices-render-notice


title: graphql_admin_notices_render_notice hookType: action hookGroup: settings plugin: wp-graphql

graphql_admin_notices_render_notice

do_action( 'graphql_admin_notices_render_notice', $notice_slug, $notice, $is_dismissable, $count );

Fires for each admin notice that is rendered.

  • Type: action
  • Group: Settings and Admin
  • Since: v1.23.0
  • Source File: plugins/wp-graphql/src/Admin/AdminNotices.php

Parameters

  • $notice_slug (string): The slug of the notice
  • $notice (AdminNoticeConfig): The notice to be rendered
  • $is_dismissable (bool): Whether the notice is dismissable or not
  • $count (int): The count of the notice

Source

do_action( 'graphql_admin_notices_render_notice', $notice_slug, $notice, $is_dismissable, $count );