You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
609 B
JavaScript

(()=>{var t,e;t=wp.media.view.AttachmentFilters.extend({id:"media-attachment-seo-filter",createFilters:function(){var t={};_.each(RankMathProMedia.filters||{},(function(e,r){t[r]={text:e,props:{attachment_seo_filter:r}}})),t.all={text:RankMathProMedia.filter_all,props:{},priority:10},this.filters=t}}),e=wp.media.view.AttachmentsBrowser,wp.media.view.AttachmentsBrowser=wp.media.view.AttachmentsBrowser.extend({createToolbar:function(){e.prototype.createToolbar.call(this),this.toolbar.set("MediaLibrarySEOFilter",new t({controller:this.controller,model:this.collection.props,priority:-75}).render())}})})();