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 | |
$popular_post = new WP_Query(array( | |
'post_type' => 'post', | |
'posts_per_page' => 5, | |
'meta_key' => 'post_views_count', | |
'orderby' => 'meta_value_num', | |
'order' => 'DESC' | |
)); |
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
// Útil para filtros de Gutenberg como "allowed_block_types" | |
archives | |
audio | |
button | |
categories | |
code | |
column | |
columns | |
coverImage |
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('elementor/element/before_section_end', function( $section, $section_id, $args ) { | |
if( $section->get_name() == 'section' && $section_id == 'section_layout' ){ | |
$section->add_control( | |
'wpb_section_padding', | |
[ | |
'label' => _x( 'Section Padding (top & bottom)', 'Section Control', 'wpb-plugins' ), | |
'type' => Elementor\Controls_Manager::SELECT, |
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 new custom font to Font Family selection in icon box module | |
function zeckart_add_new_icon_set_to_iconbox( ) { | |
$param = WPBMap::getParam( 'vc_icon', 'type' ); | |
$param['value'][__( 'IcoMoon', 'total' )] = 'icomoon'; | |
vc_update_shortcode_param( 'vc_icon', $param ); | |
} | |
add_filter( 'init', 'zeckart_add_new_icon_set_to_iconbox', 40 ); |
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( 'vc_before_init', function() { | |
if (class_exists('WPBMap')) { | |
add_filter('init', function () { | |
$param = WPBMap::getParam('vc_icon', 'type'); | |
$param['value'][__('Thimify Icon', 'total')] = 'themify_icon'; | |
vc_update_shortcode_param('vc_icon', $param); | |
}, 40); |