phpdocs, phpcs

This commit is contained in:
André Menrath 2024-09-26 15:51:23 +02:00
parent 20f0ea2823
commit 3dbd3e21ee

View file

@ -260,7 +260,15 @@ abstract class Event extends Post {
return $summary; return $summary;
} }
public static function remove_ap_permalink_from_template( $template) { /**
* Remove the permalink shortcode from a WordPress template.
*
* This used for the summary template, because the summary usually gets,
* used when converting a object, where the URL is usually appended anyway.
*
* @param string $template The template string.
*/
public static function remove_ap_permalink_from_template( $template ) {
$template = str_replace( '[ap_permalink]', '', $template ); $template = str_replace( '[ap_permalink]', '', $template );
$template = str_replace( '[ap_permalink type="html"]', '', $template ); $template = str_replace( '[ap_permalink type="html"]', '', $template );