[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-blogs/screens/ -> create.php (source)

   1  <?php
   2  /**
   3   * Blogs: Create screen handler
   4   *
   5   * @package BuddyPress
   6   * @subpackage BlogsScreens
   7   * @since 3.0.0
   8   */
   9  
  10  /**
  11   * Load the "Create a Blog" screen.
  12   *
  13   * @since 1.0.0
  14   */
  15  function bp_blogs_screen_create_a_blog() {
  16  
  17      if ( ! is_multisite() || ! bp_is_blogs_component() || ! bp_is_current_action( 'create' ) || ! is_user_logged_in() || ! bp_blog_signup_enabled() ) {
  18          return false;
  19      }
  20  
  21      /**
  22       * Fires right before the loading of the Create A Blog screen template file.
  23       *
  24       * @since 1.0.0
  25       */
  26      do_action( 'bp_blogs_screen_create_a_blog' );
  27  
  28      bp_core_load_template( apply_filters( 'bp_blogs_template_create_a_blog', 'blogs/create' ) );
  29  }
  30  add_action( 'bp_screens', 'bp_blogs_screen_create_a_blog', 3 );


Generated: Thu Nov 21 01:00:57 2024 Cross-referenced by PHPXref 0.7.1