WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Notes

LearnMoreAboutVariableProducts::maybe_add_new_note() public WC 1.0

Maybe attempt to add a new note if product is published.

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

No Hooks.

Return

null. Nothing.

Usage

$LearnMoreAboutVariableProducts = new LearnMoreAboutVariableProducts();
$LearnMoreAboutVariableProducts->maybe_add_new_note( $new_status, $old_status, $post );
$new_status(string) (required)
new status.
$old_status(string) (required)
old status.
$post(object) (required)
post object.

Code of LearnMoreAboutVariableProducts::maybe_add_new_note() WC 5.3.0

<?php
public function maybe_add_new_note( $new_status, $old_status, $post ) {
	if ( 'publish' === $new_status && 'publish' !== $old_status && 'product' === $post->post_type ) {
		$product = wc_get_product( $post->ID );
		if ( ! $product ) {
			return;
		}

		$product->is_type( 'simple' ) && static::possibly_add_note();
	}
}