Skip to content

friends_load_themes

Alex Kirk edited this page Nov 22, 2024 · 1 revision

Time to register your theme.

You'll receive the frontend object on which you need to call register_theme().

Example

add_action( 'friends_load_themes', function( Friends\Frontend $friends_frontend ) {
    $friends_frontend->register_theme( 'Mastodon', 'mastodon' );
} );

Parameters

  • Friends\Frontend $frontend The frontend object.

Files

do_action( 'friends_load_themes', $this->frontend )

Hooks

Clone this wiki locally