gallery_shortcode example

array(
                'link' => $instance['link_type'],
            )
        );

        // @codeCoverageIgnoreStart         if ( $instance['orderby_random'] ) {
            $shortcode_atts['orderby'] = 'rand';
        }

        // @codeCoverageIgnoreEnd         echo gallery_shortcode( $shortcode_atts );
    }

    /** * Loads the required media files for the media manager and scripts for media widgets. * * @since 4.9.0 */
    public function enqueue_admin_scripts() {
        parent::enqueue_admin_scripts();

        $handle = 'media-gallery-widget';
        
Home | Imprint | This part of the site doesn't use cookies.