Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/27/2023 11:30:13 AM (3 years ago)
Author:
imath
Message:

Blogs: move site creation confirmation markup into BP Template Packs

To make the site creation confirmation markup generated by the bp_blogs_confirm_blog_signup() function easily customizable, we've moved it inside a new template of our BP Template Packs:

  • src/bp-templates/bp-legacy/buddypress/blogs/confirm.php
  • src/bp-templates/bp-nouveau/buddypress/blogs/confirm.php

Props boonebgorges, dcavins

Fixes #8068
Closes https://github.com/buddypress/buddypress/pull/142

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/blogs/template-tags.php

    r13504 r13530  
    9191    // It's a create a blog hook
    9292    $hook[] = 'create_blog';
     93
     94    if ( $suffix ) {
     95        $hook[] = $suffix;
     96    }
     97
     98    bp_nouveau_hook( $hook );
     99}
     100
     101/**
     102 * Fire specific hooks into the blogs confirm template
     103 *
     104 * @since 12.0.0
     105 *
     106 * @param string $when   Optional. Either 'before' or 'after'.
     107 * @param string $suffix Optional. Use it to add terms at the end of the hook name.
     108 */
     109function bp_nouveau_blogs_confirm_hook( $when = '', $suffix = '' ) {
     110    $hook = array( 'bp' );
     111
     112    if ( $when ) {
     113        $hook[] = $when;
     114    }
     115
     116    // It's a create a blog hook
     117    $hook[] = 'blog_confirmed';
    93118
    94119    if ( $suffix ) {
Note: See TracChangeset for help on using the changeset viewer.