This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################ | |
# NATIONAL GOOGLE TRENDS # | |
################################ | |
# | |
# Updated: 20171123 | |
# Created by h8rt3rmin8r | |
# Email: [email protected] | |
# PGP: h8rt3rmin8r.com | |
############################################################################################################### | |
# Curl the XML data from all nationally-sorted Google search trends feeds. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Library = wp.media.controller.Library; | |
var oldMediaFrame = wp.media.view.MediaFrame.Post; | |
// Extending the current media library frame to add a new tab | |
wp.media.view.MediaFrame.Post = oldMediaFrame.extend({ | |
initialize: function() { | |
// Calling the initalize method from the current frame before adding new functionality | |
oldMediaFrame.prototype.initialize.apply( this, arguments ); |