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.
This hook occurs 2 times in this file.
Line | Code |
---|---|
71 | $date[3], |
72 | $date[4], |
73 | $date[5], |
74 | $post->post_name, |
75 | $post->ID, |
76 | $category, |
77 | $author, |
78 | $post->post_name, |
79 | ); |
80 | return apply_filters('post_link', get_settings('home') . str_replace($rewritecode, $rewritereplace, $permalink), $post); |
81 | } else { // if they're not using the fancy permalink option |
82 | $permalink = get_settings('home') . '/?p=' . $post->ID; |
83 | return apply_filters('post_link', $permalink, $post); |
84 | } |
85 | } |
86 |
|
87 | function get_page_link($id = false) { |
88 | global $post, $wp_rewrite; |
89 |
|
90 | $id = (int) $id; |
91 | if ( !$id ) |
92 | $id = (int) $post->ID; |