Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
/* ----------------------------------------------------------------------------- | |
* REST API SETUP | |
* -------------------------------------------------------------------------- */ | |
add_action( 'rest_api_init', function () { | |
register_rest_route( 'users', '/auth/', array( | |
'methods' => 'POST', | |
'callback' => 'meditation_user_auth' | |
) ); | |
} ); |
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
$('#similar_product_two_upload_image_button').on('click', function(e) { | |
e.preventDefault(); | |
var send_attachment_bkp = wp.media.editor.send.attachment; | |
wp.media.editor.send.attachment = function(props, attachment) { | |
$('.similar_product_two_upload_src').attr('src', attachment.url); | |
$('#similar_product_two_upload_image').attr('value', attachment.url); | |
wp.media.editor.send.attachment = send_attachment_bkp; | |
} | |
wp.media.editor.open(); | |
return false; |
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_filter('avada_options_sections', 'avada_child_options_sections'); | |
function avada_child_options_sections( $sections ) | |
{ | |
$sections['header']['fields']['header_info_1']['fields']['header_layout']['choices']['v8'] = AVADA_CHILD_THEME_DIR_URI . '/assets/img/header-pattern/header-8.png'; | |
$sections['header']['fields']['header_info_1']['fields']['header_number']['required'][] = array( | |
'setting' => 'header_layout', | |
'operator' => '=', |
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
/** | |
* | |
* Flatsome UX Builder Addon | |
* | |
* adds a scroll to mouse animation to parts of the page | |
* | |
* Dependent files (in your child theme): | |
* /css/scroll.min.css | |
* | |
* Parent Theme Supported |
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 | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php | |
*/ | |
$args = array( |
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 | |
/* | |
Plugin Name: OT Flatsome Ultimate Addons | |
Plugin URI: https://ninewp.com | |
Description: OT Flatsome Ultimate Addons | |
Version: 1.0.0 | |
Author: thinhbg59 | |
Text Domain: OT_FL_Ultimate_Addons | |
Domain Path: /languages |
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
.in-sub-panel #customize-theme-controls .customize-pane-child.current-panel-parent, | |
#customize-theme-controls .customize-pane-child.current-section-parent { | |
-webkit-transform: translateX(-100%); | |
-ms-transform: translateX(-100%); | |
transform: translateX(-100%); | |
} |
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('rest_api_init', 'register_my_rest_field'); | |
/** | |
* It depends on term_meta key _thumbnail_id using the metadata API | |
* for terms. Only plugin I know uses this is Taxonomy Thumbnail: | |
* https://wordpress.org/plugins/sf-taxonomy-thumbnail/ instead of | |
* storing metadata for terms in wp_options or custom tables | |
*/ | |
function register_my_rest_field() | |
{ |
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
/** | |
* CPT ACF | |
* | |
* Adds a Menu Item for custom post types to add options page fields. | |
* | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | |
function ctp_acf_options_pages() { |
NewerOlder