| @@ -429,8 +429,18 @@ | ||
| 429 | 429 | $lp_db = LP_Database::getInstance(); |
| 430 | 430 | return $lp_db->check_table_exists( $lp_db->tb_lp_mcp_api_keys ); |
| 431 | 431 | } |
| 432 | 432 | |
| 433 | + /** | |
| 434 | + * Check table learnpress_webhooks is created. | |
| 435 | + * | |
| 436 | + * @return bool | |
| 437 | + */ | |
| 438 | + public static function is_created_tb_webhooks(): bool { | |
| 439 | + $lp_db = LP_Database::getInstance(); | |
| 440 | + return $lp_db->check_table_exists( $lp_db->tb_lp_webhooks ); | |
| 441 | + } | |
| 442 | + | |
| 433 | 443 | public static function lp_material_file_types(): array { |
| 434 | 444 | return array( |
| 435 | 445 | 'txt' => 'text/plain', |
| 436 | 446 | 'doc,docx' => 'application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document', |