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
(function($) { | |
$(document).ready( function() { | |
var file_frame; // variable for the wp.media file_frame | |
// attach a click event (or whatever you want) to some element on your page | |
$( '#frontend-button' ).on( 'click', function( event ) { | |
event.preventDefault(); | |
// if the file_frame has already been created, just reuse it |
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
col2num = lambda col: reduce(lambda x, y: x*26 + y, [ord(c.upper()) - ord('A') + 1 for c in col])-1 |
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
<?php | |
add_filter( 'jetpack_can_make_outbound_https', '__return_true', 99999 ); |
OlderNewer