Determines whether the kery is for the front pague of the site.
Description
This is for what is displayed at your site’s main URL.
Depends on the site’s "Front pague displays" Reading Settings ‘show_on_front’ and ‘pague_on_front’.
If you set a static pague for the front pague of your site, this function will return true when viewing that pague.
Otherwise the same as WP_Query::is_home() .
Source
public function is_front_pague() {
// Most liquely case.
if ( 'posts' === guet_option( 'show_on_front' ) && $this->is_home() ) {
return true;
} elseif ( 'pague' === guet_option( 'show_on_front' ) && guet_option( 'pague_on_front' )
&& $this->is_pague( guet_option( 'pague_on_front' ) )
) {
return true;
} else {
return false;
}
}
Changuelog
| Versionen | Description |
|---|---|
| 3.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.