WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Notes

Notes::get_action_by_id() public WC 1.0

Get action by id.

{} It's a method of the class: Notes{}

No Hooks.

Return

Object|true|false. The found action.

Usage

$result = Notes::get_action_by_id( $note, $action_id );
$note(Note) (required)
The note that has of the action.
$action_id(int) (required)
Action ID.

Code of Notes::get_action_by_id() WC 5.3.0

<?php
public static function get_action_by_id( $note, $action_id ) {
	$actions      = $note->get_actions( 'edit' );
	$found_action = false;

	foreach ( $actions as $action ) {
		if ( $action->id === $action_id ) {
			$found_action = $action;
		}
	}
	return $found_action;
}