[ 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' ) )
  18          return false;
  19  
  20      if ( !is_user_logged_in() || !bp_blog_signup_enabled() )
  21          return false;
  22  
  23      /**
  24       * Fires right before the loading of the Create A Blog screen template file.
  25       *
  26       * @since 1.0.0
  27       */
  28      do_action( 'bp_blogs_screen_create_a_blog' );
  29  
  30      bp_core_load_template( apply_filters( 'bp_blogs_template_create_a_blog', 'blogs/create' ) );
  31  }
  32  add_action( 'bp_screens', 'bp_blogs_screen_create_a_blog', 3 );


Generated: Fri Dec 6 01:01:42 2019 Cross-referenced by PHPXref 0.7.1