jetpack_default_gallery_type, rectangular

jetpack_default_gallery_type, rectangular

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.16.0.1

apply_filters('jetpack_default_gallery_type, rectangular') is found 1 times:

  • /modules/tiled-gallery/tiled-gallery.php line 93
     
    		// Default to rectangular is tiled galleries are checked
    		if ( $this->tiles_enabled() && ( ! $this->atts['type'] || 'default' === $this->atts['type'] ) ) {
    			/** This filter is already documented in class-jetpack-gallery-settings.php */
    			$this->atts['type'] = apply_filters( 'jetpack_default_gallery_type', 'rectangular' );
    		}
    
    		if ( ! $this->atts['orderby'] ) {
    			$this->atts['orderby'] = sanitize_sql_orderby( $this->atts['orderby'] );
    			if ( ! $this->atts['orderby'] ) {
    				$this->atts['orderby'] = 'menu_order ID';