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
class ElementsKit_Extend_Onepage_Scroll{ | |
public function __construct() { | |
// add_action( 'elementor/element/wp-post/document_settings/after_section_start', [ $this, 'register_controls' ], 10, 2 ); | |
add_action( 'elementor/element/wp-post/document_settings/before_section_end', [ $this, 'register_controls' ], 10, 2 ); | |
} | |
public function register_controls( Controls_Stack $element ) { |
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_action( 'elementor/element/button/section_style/before_section_end', function( $element, $args ) { | |
$element->start_injection( [ | |
'at' => 'after', | |
'of' => 'button_type', | |
] ); | |
// add a control | |
$element->add_control( | |
'btn_style', | |
[ | |
'label' => 'Button Styles', |
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
if (!function_exists('xs_convert_fa4_to_fa5')) { | |
/** | |
* Convert a Font Awesome 4 icon to Font Awesome 5 | |
* | |
* @param $icon | |
* | |
* @return string | |
*/ | |
function xs_convert_fa4_to_fa5($icon) | |
{ |
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
$(document).ready(function($) { | |
$('.mls').each(function(index, el) { | |
var this_val = $(this).text(); | |
//'icon-play-button' => array('group' => 'finences-icons'), | |
$print_class = "'icon"+this_val+"' => array('group' => 'finences-icons'),"; | |
console.log($print_class); | |
}); |
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
register_post_type( 'apb_room_type', apply_filters( 'awe_post_type_room_type', array( | |
'labels' => array( | |
'name' => _x( 'Room Type', 'Post Type General Name', 'awebooking' ), | |
'singular_name' => _x( 'AweBooking', 'Post Type Singular Name', 'awebooking' ), | |
'menu_name' => __( 'AweBooking', 'awebooking' ), | |
'all_items' => __( 'All Room Types', 'awebooking' ), | |
'view_item' => __( 'View Room Type', 'awebooking' ), | |
'add_new_item' => __( 'Add New Room Type', 'awebooking' ), | |
'add_new' => __( 'Add New Room Type', 'awebooking' ), | |
'edit_item' => __( 'Edit Room Type', 'awebooking' ), |
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
https://github.com/ThemeFuse/Unyson-Backups-Extension/issues/30#issuecomment-253008320 | |
This possibility was already there #15 | |
How to disable image sizes remove on Content Backup | |
Important! Use this code only while developing, to export a demo install with image sizes included. Do not include this code in theme in production, because all Content Backups created by user will be with image sizes. | |
Add the filter in {theme}/functions.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_enqueue_scripts', 'enqueue_my_styles' ); | |
/** | |
* Example callback function that demonstrates how to properly enqueue conditional stylesheets in WordPress for IE. | |
* IE10 and up does not support conditional comments in standards mode. | |
* | |
* @uses wp_style_add_data() WordPress function to add the conditional data. | |
* @link https://developer.wordpress.org/reference/functions/wp_style_add_data/ |
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 remove_subscribers() { | |
global $wpdb; | |
$args = array( 'role' => 'Subscriber' ); | |
$subscribers = get_users( $args ); | |
if ( !empty( $subscribers ) ) { | |
require_once( ABSPATH . 'wp-admin/includes/user.php' ); | |
$i = 0; | |
foreach ( $subscribers as $subscriber ) { |
NewerOlder