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 |
---|---|
70 | date('H', $unixtime), |
71 | date('i', $unixtime), |
72 | date('s', $unixtime), |
73 | $post->post_name, |
74 | $post->ID, |
75 | $category, |
76 | $author, |
77 | $post->post_name, |
78 | ); |
79 | return apply_filters('post_link', get_settings('home') . str_replace($rewritecode, $rewritereplace, $permalink), $post); |
80 | } else { // if they're not using the fancy permalink option |
81 | $permalink = get_settings('home') . '/?p=' . $post->ID; |
82 | return apply_filters('post_link', $permalink, $post); |
83 | } |
84 | } |
85 |
|
86 | function get_page_link($id = false) { |
87 | global $post, $wp_rewrite; |
88 |
|
89 | if ( !$id ) |
90 | $id = $post->ID; |
91 |
|