Tag Info

Hot answers tagged

2

From /wp-includes/script-loader.php: $scripts->add( 'media-grid', "/wp-includes/js/media-grid$suffix.js", array( 'media-editor' ), false, 1 ); From wp-admin/upload.php: wp_enqueue_script( 'media-grid' ); wp_enqueue_script( 'media' ); wp_localize_script( 'media-grid', '_wpMediaGridSettings', array( 'adminUrl' => parse_url( self_admin_url(), ...


1

You have to convert attachment variable to JSON object using toJSON() . Then you can its property. use attachment = frame.state().get('selection').first().toJSON(); instead of attachment = frame.state().get('selection').first();


1

When you use the importer it should prompt whether to download any media/attachments it finds in the posts. If you don't say yes, they will not be added to your Media database. To my knowledge, even if you do say yes, Featured Images are not included. It's a very rare instance that I recommend using the built-in importer, and migration from one server to ...



Only top voted, non community-wiki answers of a minimum length are eligible