Automattic\WooCommerce\Internal\Admin
ActivityPanels::component_settings()
Add alert count to the component settings.
Method of the class: ActivityPanels{}
No Hooks.
Return
null
. Nothing (null).
Usage
$ActivityPanels = new ActivityPanels(); $ActivityPanels->component_settings( $settings );
- $settings(array) (required)
- Component settings.
ActivityPanels::component_settings() ActivityPanels::component settings code WC 9.3.3
public function component_settings( $settings ) { $settings['alertCount'] = Notes::get_notes_count( array( 'error', 'update' ), array( 'unactioned' ) ); return $settings; }