View index.php
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 | |
$value = [ | |
[ | |
'attribute_type' => 'pa_merchant', | |
'pa_merchant' => [ 305 ], | |
], | |
[ | |
'attribute_type' => 'pa_brand', | |
'pa_brand' => [ 692 ], | |
], |
View index.php
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
add_filter( 'woocommerce_related_products', 'exclude_oos_related_products', 10, 3 ); | |
function exclude_oos_related_products( $related_posts, $product_id, $args ){ | |
$out_of_stock_product_ids = (array) wc_get_products( array( | |
'status' => 'publish', | |
'limit' => -1, | |
'stock_status' => 'outofstock', | |
'return' => 'ids', | |
) ); | |
$exclude_ids = $out_of_stock_product_ids; |
View YouTubeURLFormats.txt
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
http://www.youtube.com/watch?v=-wtIMTCHWuI | |
http://www.youtube.com/v/-wtIMTCHWuI?version=3&autohide=1 | |
http://youtu.be/-wtIMTCHWuI | |
http://www.youtube.com/oembed?url=http%3A//www.youtube.com/watch?v%3D-wtIMTCHWuI&format=json | |
http://www.youtube.com/attribution_link?a=JdfC0C9V6ZI&u=%2Fwatch%3Fv%3DEhxJLojIE_o%26feature%3Dshare |
View index.php
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 | |
$data = @json_decode( get_post_meta( 21361, '_elementor_data', true ), true ); | |
if ( $data ) { | |
function stylepress_email_find( $data, $findkey ) { | |
if ( is_array( $data ) ) { | |
foreach ( $data as $d ) { | |
if ( $d && ! empty( $d['id'] ) && $d['id'] === $findkey ) { | |
return $d; | |
} | |
if ( $d && ! empty( $d['elements'] ) && is_array( $d['elements'] ) ) { |
View index.php
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 | |
class AIGetElementSettings { | |
public function __construct( $postid, $widget_id, $widget_type ) { | |
$this->postid = $postid; | |
$this->widget_id = $widget_id; | |
$this->widget_type = $widget_type; | |
$this->widget = null; | |
$this->parse(); | |
} |
View index.js
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
elementor.channels.editor.on('section:activated', function(sectionName, editor) { | |
var editedElement = editor.getOption('editedElementView'); | |
if ('frymo-contact-form' !== editedElement.model.get('widgetType')) { | |
return; | |
} | |
console.log('sectionName', sectionName); | |
console.log('editor', editor); | |
var isSideBSection = -1 !== ['section_form', 'fields_styles'].indexOf(sectionName); | |
editedElement.$el.toggleClass('test', isSideBSection); | |
}); |
View index.html
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
<div class="pref-progress" data-percent="50"> | |
<div class="pref-bar"><div class="pref-perc">0%</div></div> | |
</div> | |
<br> | |
<div class="pref-progress" data-percent="72"> | |
<div class="pref-bar"><div class="pref-perc">0%</div></div> | |
</div> | |
<br> | |
<div class="pref-progress" data-percent="99"> | |
<div class="pref-bar"><div class="pref-perc">0%</div></div> |
View index.js
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 initDHtooltips() { | |
// tolltips | |
$( document ).on( 'mouseenter', '[data-dh-tooltip]', function() { | |
clearTimeout( $( this ).data( 'dh-tooltip-timeout-id' ) ); | |
var prevTooltip = $( this ).find( '.tooltip' ); | |
if ( prevTooltip.length > 0 ) return false; | |
$( this ).append( '<div class="tooltip"><div class="tooltip-wrapper"><span>' + $( this ).data( 'dh-tooltip' ) + '</span></div><div class="tooltip-trangle"></div></div>' ); |
View index.php
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_action( 'wp_insert_post', 'filter_function_name_11', 10, 3 ); | |
function filter_function_name_11( $post_id, $post, $update ) { | |
update_post_meta( $post_id, '_wp_page_template', 'elementor_canvas' ); | |
} |
View page-update.php
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 | |
function update_controls( $elements ) { | |
$new_elements = array(); | |
foreach ( $elements as $element_index => $element ) { | |
foreach ( $element as $key => $value ) { | |
if ( $key == 'elements' && ! empty( $value ) ) { | |
$new_elements[$element_index][$key] = update_controls( $value ); |
NewerOlder