Home/Hooks/_get_page_link
FILTER

_get_page_link

Filters the permalink for a non-page_on_front page.

wp-includes/link-template.php
Line 456
2 Parameters
View Source

Usage

add_filter( '_get_page_link', 'your_callback_function', 10, 2 );

Filter Callback:

function your_callback_function( $link, $post->ID ) {
    // Your code here
    return $link;
}

Parameters

$link

Parameter 1

$post->ID

Parameter 2

🔄 Filter Hook

Filter hooks allow you to modify data before it is saved to the database or displayed on the screen. Filters must return a value.