Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

Commit bad90e5

Browse files
authored
Replace add_filter with apply_filters
1 parent 1b05de0 commit bad90e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/admin/post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function modify_preview_link( $link, $post ) {
8989
*
9090
* @param string $link
9191
*/
92-
return add_filter( 'cargo_preview_link', add_query_arg( $args, $this->config( 'preview.url', home_url( '/' ) ) ) );
92+
return apply_filters( 'cargo_preview_link', add_query_arg( $args, $this->config( 'preview.url', home_url( '/' ) ) ) );
9393
}
9494

9595
// Handle preview link.

0 commit comments

Comments
 (0)