wpseek.com
A WordPress-centric search engine for devs and theme authors



rest_after_save_widget › WordPress Action Hooks

Since5.8.0
Deprecatedn/a
do_action( 'rest_after_save_widget', $id, $sidebar_id, $request, $creating )
Parameters: (4)
  • (string) $id ID of the widget being saved.
    Required: Yes
  • (string) $sidebar_id ID of the sidebar containing the widget being saved.
    Required: Yes
  • (WP_REST_Request) $request Request object.
    Required: Yes
  • (bool) $creating True when creating a widget, false when updating.
    Required: Yes
Defined at:
Codex:

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





Source

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