register_events( // Recommended Widget events. array( 'action_hook' => 'delete_widget', 'callable' => 'Parsely\Telemetry\record_widget_deleted', 'accepted_args' => 3, ), array( 'action_hook' => 'widget_update_callback', 'callable' => 'Parsely\Telemetry\record_widget_updated', 'accepted_args' => 4, ), // Setting events. array( 'action_hook' => 'load-parse-ly_page_parsely-settings', 'callable' => 'Parsely\Telemetry\record_settings_page_loaded', ), array( 'action_hook' => 'update_option_parsely', 'callable' => 'Parsely\Telemetry\record_parsely_option_updated', 'accepted_args' => 2, ) ); $tracks->run(); } ); // Attempt to enable the Pendo JavaScript library. It's up to the Pendo class to // decide whether the library will be enabled. if ( class_exists( '\Automattic\VIP\Telemetry\Pendo' ) ) { add_action( 'admin_init', // @phpstan-ignore argument.type array( \Automattic\VIP\Telemetry\Pendo::class, 'enable_javascript_library' ) ); }