Adding a filter for shortcode parameters
This commit is contained in:
parent
37c790d36b
commit
63cbe3b54d
|
|
@ -8,7 +8,12 @@
|
|||
$gpxes = get_attached_media('application/gpx+xml');
|
||||
foreach ($gpxes as $id => $gpx) {
|
||||
$url = wp_get_attachment_url($id);
|
||||
echo '<div class="attached-gpx">'.wpgpxmaps_handle_shortcodes(['gpx'=>$url, 'attachments'=>true]).'</div>';
|
||||
$parameters = ['gpx'=>$url, 'attachments'=>true];
|
||||
|
||||
echo '<div class="attached-gpx">'.
|
||||
wpgpxmaps_handle_shortcodes(
|
||||
apply_filters('wpagpx_shortcode_parameters', $parameters)
|
||||
).'</div>';
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,12 @@
|
|||
$gpxes = get_attached_media('application/gpx+xml');
|
||||
foreach ($gpxes as $id => $gpx) {
|
||||
$url = wp_get_attachment_url($id);
|
||||
echo '<div class="attached-gpx">'.wpgpxmaps_handle_shortcodes(['gpx'=>$url, 'attachments'=>true]).'</div>';
|
||||
$parameters = ['gpx'=>$url, 'attachments'=>true];
|
||||
|
||||
echo '<div class="attached-gpx">'.
|
||||
wpgpxmaps_handle_shortcodes(
|
||||
apply_filters('wpagpx_shortcode_parameters', $parameters)
|
||||
).'</div>';
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue