This file contains hidden or 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
{ | |
supports: { | |
deletable: false, | |
... | |
}, | |
... | |
} |
This file contains hidden or 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($){ | |
function copyToClipboard(text) { | |
const input = document.createElement('input'); | |
input.style.position = 'fixed'; | |
input.style.opacity = 0; | |
input.value = text; | |
document.body.appendChild(input); | |
input.select(); | |
document.execCommand('Copy'); |
This file contains hidden or 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
<div class="container" id="main"> | |
<div class="row-fluid" style=" | |
margin-bottom: 10px;"> | |
<p class="span12"> | |
<a href="#menu" class="side-menu-link btn btn-mini" title="Click for sub-menu"> | |
<i class="icon-th"></i> | |
</a> | |
</p> | |
</div> |
This file contains hidden or 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 dw_get_widget_location($id){ | |
global $wp_registered_sidebars, $wp_registered_widgets, $_wp_sidebars_widgets; | |
$widget_id = $id; | |
$widget = $wp_registered_widgets[$widget_id]; | |
foreach($_wp_sidebars_widgets as $key => $value){ | |
$sidebar = $key; |
This file contains hidden or 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 | |
///////Example usage////////// | |
//get object terms for $post->ID with taxonomies categories and tags, | |
//args set as fields all and exclude term with id 1 | |
$terms = wp_get_object_terms( | |
$post->ID, | |
array( |