芝麻web文件管理V1.00
编辑当前文件:/home/ephorei/www/wp-content/plugins/suretriggers/src/Integrations/buddyboss/buddyboss.php
' . $notification_content . ''; } return $notification_content; } elseif ( 'object' === $format ) { return [ 'text' => $notification_content, 'link' => $notification_link, ]; } } return $content; } /** * Check if content has links. * * @param string $content content. * @return array|string */ public static function st_content_has_links( $content ) { // Define a regular expression pattern to match URLs. $pattern = '/
]*href=["\']([^"\'#]+)/i'; // Use preg_match_all to find all links in the content. preg_match_all( $pattern, $content, $matches ); // Return the array of matched links. return isset( $matches[1] ) ? $matches[1] : []; } /** * Check plugin is installed. * * @return bool */ public function is_plugin_installed() { if ( function_exists( 'buddypress' ) && isset( buddypress()->buddyboss ) && buddypress()->buddyboss ) { return true; } else { return false; } } } IntegrationsController::register( BuddyBoss::class );