Skip to main content

Redirect the account page URL to a custom path

Free Beginner Since v1.0.0

benecaster_account_page_url( int $show_id = 0 ) returns the permalink of the plugin-created /podcast-account/ page. Use this filter when a podcaster places [benecaster_account] on a differently-named page and wants all plugin-generated links (token emails, QR code screens) to point there instead. Pass a non-zero $show_id to return per-show account pages on multi-show sites.

Code

<?php
// Point all account page links to a custom path, e.g. /my-podcast-portal/
add_filter(
    'benecaster_account_page_url',
    function ( string $url, int $show_id ): string {
        return home_url( '/my-podcast-portal/' );
    },
    10,
    2
);

View on GitHub →

Hooks Used