WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
872 | if ( get_option( 'permalink_structure' ) && is_array( $post_type_obj->rewrite ) && $post_type_obj->rewrite['feeds'] ) { |
873 | $link = trailingslashit( $link ); |
874 | $link .= 'feed/'; |
875 | if ( $feed != $default_feed ) |
876 | $link .= "$feed/"; |
877 | } else { |
878 | $link = add_query_arg( 'feed', $feed, $link ); |
879 | } |
880 |
|
881 | return apply_filters( 'post_type_archive_feed_link', $link, $feed ); |
882 | } |
883 |
|
884 | /** |
885 | * Retrieve edit posts link for post. |
886 | * |
887 | * Can be used within the WordPress loop or outside of it. Can be used with |
888 | * pages, posts, attachments, and revisions. |
889 | * |
890 | * @since 2.3.0 |