rest_after_save_widget

动作钩子


do_action( 'rest_after_save_widget', $id, $sidebar_id, $request, $creating )
参数
  • (string)
    $id
    ID of the widget being saved.
    Required:
  • (string)
    $sidebar_id
    ID of the sidebar containing the widget being saved.
    Required:
  • (WP_REST_Request)
    $request
    Request object.
    Required:
  • (bool)
    $creating
    True when creating a widget, false when updating.
    Required:
定义位置
  • wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php
    , line 649
引入
5.8.0
弃用

Fires after a widget is created or updated via the REST API.

do_action( 'rest_after_save_widget', $id, $sidebar_id, $request, $creating );