View allow-svg-upload-in-wordpress-media.php
<?php | |
/** | |
* Add svg support | |
* | |
*/ | |
add_filter( 'wp_check_filetype_and_ext', function( $data, $file, $filename, $mimes) { | |
global $wp_version; | |
if( $wp_version == '4.7' || ( (float) $wp_version < 4.7 ) ) { | |
return $data; | |
} |
View img-responsive.css
<div class="post-thumb"> | |
<img src="https://i.imgur.com/iCMEVjr.jpg" alt="Norway"> | |
</div> | |
.post-thumb { | |
position: relative; | |
height:0; | |
padding-bottom: 56.25%; // Điền % bạn cần. | |
} |
View project-carousel.php
<?php | |
namespace Pixelplus\Elementor\Widget; | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; // Exit if accessed directly. | |
} | |
use Elementor\Widget_Base; | |
use Elementor\Controls_Manager; |
View webhooks-elementor-forms-to-google-spreadsheets.js
/* | |
* In order to enable this script, follow these steps: | |
*** Open the Google Sheet you want to use, | |
** From the Tools menu select "Script Editor" | |
* Paste this script into code editor and hit Save. | |
* | |
*** Then click: | |
** "Publish" & select "Deploy as web app... | |
*** Select: | |
** Execute the app as: Me (youremail@gmail.com) |
View Index.php
<?php | |
- /license/api.php: 28 | |
private static function remote_post( $body_args = [] ) { | |
return array( | |
'success' => true, | |
'license' => 'valid', | |
'item_id' => false, | |
'item_name' => 'Elementor Pro', | |
'checksum' => 'd18890f8c194876c54e58d2f221e5332', |
View WooCommerce: woocommerce.php
<?php | |
function pixelplus_add_woo_custom_general_fields() { | |
global $woocommerce, $post; | |
echo '<div class="options_group">'; | |
woocommerce_wp_checkbox( | |
array( | |
'id' => '_hot_product', | |
'label' => __( 'Sản phẩm Hot?', 'pixelplus' ), |
View Woocommerce: woocommerce.php
<?php | |
/** | |
* Adjust the quantity input values | |
*/ | |
function pixelplus_woocommerce_quantity_input_args( $args, $product ) { | |
$args['step'] = '0.01'; | |
return $args; | |
} | |
add_filter( 'woocommerce_quantity_input_args', 'pixelplus_woocommerce_quantity_input_args', 10, 2 ); |
View Elementor: product-tab-grid-modern.php
<?php | |
namespace PixelPlus\Elementor\Widget; | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; // Exit if accessed directly. | |
} | |
use Elementor\Widget_Base; | |
use Elementor\Controls_Manager; | |
use Elementor\Repeater; |
View Elementor: product-tab-grid.php
<?php | |
namespace PixelPlus\Elementor\Widget; | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; // Exit if accessed directly. | |
} | |
use Elementor\Widget_Base; | |
use Elementor\Controls_Manager; | |
use Elementor\Repeater; |
View Elementor: product-thumb-left.php
<?php | |
namespace PixelPlus\Elementor\Widget; | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; // Exit if accessed directly. | |
} | |
use Elementor\Widget_Base; | |
use Elementor\Controls_Manager; |
NewerOlder