phpdocs, phpcs
This commit is contained in:
parent
20f0ea2823
commit
3dbd3e21ee
1 changed files with 9 additions and 1 deletions
|
@ -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 );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue