WC_Admin_Webhooks_Table_List::get_legacy_api_webhooks_count
Deprecated since 10.8.0 The Legacy REST API has been removed from WooCommerce core. This always returns 0.. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.
Get how many of the existing webhooks are configured to use the legacy payload format.
Method of the class: WC_Admin_Webhooks_Table_List{}
No Hooks.
Returns
Int. Always 0.
Usage
$WC_Admin_Webhooks_Table_List = new WC_Admin_Webhooks_Table_List(); $WC_Admin_Webhooks_Table_List->get_legacy_api_webhooks_count();
Changelog
| Since 9.0.0 | Introduced. |
| Deprecated since 10.8.0 | The Legacy REST API has been removed from WooCommerce core. This always returns 0. |
WC_Admin_Webhooks_Table_List::get_legacy_api_webhooks_count() WC Admin Webhooks Table List::get legacy api webhooks count code WC 10.9.3
public function get_legacy_api_webhooks_count() {
wc_deprecated_function( __METHOD__, '10.8.0' );
return 0;
}