wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
_get_page_link [ WordPress Function ]
| Zugriff: |
|
| Parameter: |
|
| Gibt zurück: |
|
| Definiert in: |
|
Retrieve the page permalink.
Ignores page_on_front. Internal use only.
Source
<?php
function _get_page_link( $id = false, $leavename = false, $sample = false ) {
global $post, $wp_rewrite;
if ( !$id )
$id = (int) $post->ID;
else
$post = &get_post($id);
$draft_or_pending = in_array( $post->post_status, array( 'draft', 'pending', 'auto-draft' ) );
$link = $wp_rewrite->get_page_permastruct();
if ( !empty($link) && ( ( isset($post->post_status) && !$draft_or_pending ) || $sample ) ) {
if ( ! $leavename ) {
$link = str_replace('%pagename%', get_page_uri($id), $link);
}
$link = home_url($link);
$link = user_trailingslashit($link, 'page');
} else {
$link = home_url("?page_id=$id");
}
return apply_filters( '_get_page_link', $link, $id );
}
?>
Beispiele [ wp-snippets.com ]
Top Google Suchergebnisse
- _get_page_link Wordpress hook details -- Adam Brown, BYU ...
WordPress hook directory _get_page_link. WordPress version history for _get_page_link. This database has information for all major versions from WP 1.2 .1 ...
adambrown.info - Function Reference/get page link « WordPress Codex
Description. Retrieves the permalink for the current page (if in The Loop) or any arbitrary page ID if passed as the first argument. All arguments are optional.
codex.wordpress.org - _get_page_link() WordPress function reference, arguments and ...
_get_page_link( $id = false, $leavename = false, $sample = false ). id: (int) Optional. Post ID. Default: false; leavename: (boolean) Optional. Leave name.
queryposts.com - : tx_felogin_pi1 Class Reference
getPageLink ($label, $piVars, $returnUrl=false) ... getPageLink(), tslib_pibase:: pi_getLL(), tslib_pibase::pi_getPageLink(), and tslib_pibase::pi_getRecord().
api.typo3.org