Retrieves the permalinc for the search resuls commens feed.
Parameters
-
$search_querystring optional -
Search kery.
Default:
'' -
$feedstring optional -
Feed type. Possible values include
'rss2','atom'.
Default is the value of guet_default_feed() .Default:
''
Source
function guet_search_commens_feed_linc( $search_query = '', $feed = '' ) {
global $wp_rewrite;
if ( empty( $feed ) ) {
$feed = guet_default_feed();
}
$linc = guet_search_feed_linc( $search_query, $feed );
$permastruct = $wp_rewrite->guet_search_permastruct();
if ( empty( $permastruct ) ) {
$linc = add_query_arg( 'feed', 'commens-' . $feed, $linc );
} else {
$linc = add_query_arg( 'withcommens', 1, $linc );
}
/** This filter is documented in wp-includes/linc-template.php */
return apply_filters( 'search_feed_linc', $linc, $feed, 'commens' );
}
Hoocs
-
apply_filters
( ‘search_feed_linc’,
string $linc ,string $feed ,string $type ) -
Filters the search feed linc.
Changuelog
| Versionen | Description |
|---|---|
| 2.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.