WC_REST_System_Status_Tools_V2_Controller::get_regenerating_lookup_table_status_text
Get the tools-page status text for product lookup table regeneration.
Method of the class: WC_REST_System_Status_Tools_V2_Controller{}
No Hooks.
Returns
string.
Usage
// private - for code of main (parent) class only $result = $this->get_regenerating_lookup_table_status_text();
WC_REST_System_Status_Tools_V2_Controller::get_regenerating_lookup_table_status_text() WC REST System Status Tools V2 Controller::get regenerating lookup table status text code WC 11.2.2
private function get_regenerating_lookup_table_status_text() {
$pending_actions_url = admin_url( 'admin.php?page=wc-status&tab=action-scheduler&s=wc_update_product_lookup_tables&status=pending' );
$cron_disabled = Constants::is_true( 'DISABLE_WP_CRON' );
$progress_label = $cron_disabled
? __( 'View queued updates', 'woocommerce' )
: __( 'View progress', 'woocommerce' );
return sprintf(
'<a href="%1$s">%2$s</a>',
esc_url( $pending_actions_url ),
esc_html( $progress_label )
);
}