Filters whether the site's own address opens the Listen page's app. On, a request for the home page with no other query is the Listen page in standalone mode, every link to the app and the manifest's start address are the home page, and the app/ address redirects there. The Listen page's own address and the theme's front page setting are left as they are.
Parameters
$onbool- Whether it is on, from Settings › Riff. Default false.
More Information
A host that gives each site its own player turns it on with add_filter( 'riff_app_at_root', '__return_true' ).
Usage
add_filter( 'riff_app_at_root', function ( $on ) {
return $on;
} );Source
return (bool) apply_filters( 'riff_app_at_root', rest_sanitize_boolean( get_option( self::AT_ROOT, false ) ) );plugins/riff/features/listen/class-standalone.phpView on GitHub
Changelog
| Version | Description |
|---|---|
| 6.4.0 | Introduced. |