public function register_default_field_group() {

		$location   = [];
		$post_types = apply_filters( 'hogan/field_group/default/supported_post_types', [ 'page' ] );

		// Include the deprecated global filter, to be removed at some point.
		$post_types = apply_filters_deprecated( 'hogan/supported_post_types', [ $post_types ], '1.3.0', 'hogan/field_group/default/supported_post_types' );

		if ( is_array( $post_types ) && ! empty( $post_types ) ) {
			// Add default location parameter for each supported post type.
			foreach ( $post_types as $post_type ) {
				$location[] = [
					[
						'param'    => 'post_type',
						'operator' => '==',
						'value'    => $post_type,
					],
				];
			}
		}

		// Register a field group with mostly default args.
		$this->register_field_group( [
			'name'           => 'default',
			'location'       => $location,
			'hide_on_screen' => [
				'the_content',
				'custom_fields',
				'discussion',
				'comments',
				'revisions',
				'slug',
				'author',
				'format',
				'tags',
				'send-trackbacks',
			],
		] );
	}
public function register_default_field_group() {

		$location   = [];
		$post_types = apply_filters( 'hogan/field_group/default/supported_post_types', [ 'page' ] );

		// Include the deprecated global filter, to be removed at some point.
		$post_types = apply_filters_deprecated( 'hogan/supported_post_types', [ $post_types ], '1.3.0', 'hogan/field_group/default/supported_post_types' );

		if ( is_array( $post_types ) && ! empty( $post_types ) ) {
			// Add default location parameter for each supported post type.
			foreach ( $post_types as $post_type ) {
				$location[] = [
					[
						'param'    => 'post_type',
						'operator' => '==',
						'value'    => $post_type,
					],
				];
			}
		}

		// Register a field group with mostly default args.
		$this->register_field_group( [
			'name'           => 'default',
			'location'       => $location,
			'hide_on_screen' => [
				'the_content',
				'custom_fields',
				'discussion',
				'comments',
				'revisions',
				'slug',
				'author',
				'format',
				'tags',
				'send-trackbacks',
			],
		] );
	}
public function register_default_field_group ( ) { $ location = [ ] ; $ post_types = apply_filters ( 'hogan/field_group/default/supported_post_types' , [ 'page' ] ) ; // Include the deprecated global filter, to be removed at some point. $ post_types = apply_filters_deprecated ( 'hogan/supported_post_types' , [ $ post_types ] , '1.3.0' , 'hogan/field_group/default/supported_post_types' ) ; if ( is_array ( $ post_types ) && ! empty ( $ post_types ) ) { // Add default location parameter for each supported post type. foreach ( $ post_types as $ post_type ) { $ location [ ] = [ [ 'param' => 'post_type' , 'operator' => '==' , 'value' => $ post_type , ] , ] ; } } // Register a field group with mostly default args. $ this -> register_field_group ( [ 'name' => 'default' , 'location' => $ location , 'hide_on_screen' => [ 'the_content' , 'custom_fields' , 'discussion' , 'comments' , 'revisions' , 'slug' , 'author' , 'format' , 'tags' , 'send-trackbacks' , ] , ] ) ; }
Register default field group for all modules.

@return void
Register default field group for all modules .