This file contains hidden or 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
array( | |
'title' => array( | |
'type' => 'text', | |
'label' => __('Widget Title', 'dentalia'), | |
), | |
'widget_repeater' => array( | |
'type' => 'repeater', | |
'label' => __( 'Add Document' , 'dentalia' ), | |
'item_name' => __( 'Click to add a document', 'dentalia' ), | |
'item_label' => array( |
This file contains hidden or 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 | |
global $wp_filter; | |
echo '<pre>'; | |
var_dump( $wp_filter['woocommerce_single_product_summary'] ); | |
echo '</pre>'; | |
?> |
This file contains hidden or 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 | |
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php | |
*/ | |
$args = array( |
This file contains hidden or 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( 'init', 'update_team_post_type', 99 ); | |
function update_team_post_type() { | |
global $wp_post_types; | |
if ( post_type_exists( 'team-member' ) ) { | |
// exclude from search results | |
$wp_post_types['team-member']->exclude_from_search = true; | |
} | |
} |
This file contains hidden or 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 Custom font font to the theme options font list. | |
* | |
* @param array $custom_fonts Current custom fonts. | |
* @return string[string][string] The Web fonts section. | |
*/ | |
function orion_custom_fonts( $custom_fonts ) { | |
return array( | |
'Web Fonts' => array( | |
'Custom Font' => 'customfont' |
This file contains hidden or 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
/* set the field */ | |
if(!function_exists('orion_bg_opacity_field')) { | |
function orion_bg_opacity_field($fields) { | |
$fields['bg_opacity'] = array( | |
'name' => esc_html__('Background opacity', 'recycle'), | |
'type' => 'text', | |
'group' => 'design', | |
'description' => esc_html__('Must be a number between 1 and 100. 1 is almost transparent, 100 is opaque.', 'recycle'), | |
'default' => 100, |
This file contains hidden or 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 | |
/* | |
Widget Name: (OrionThemes) Static Block | |
Description: Add Static block content | |
Author: OrionThemes | |
Author URI: http://orionthemes.com | |
*/ | |
if(!function_exists('orion_get_static_blocks')) { | |
function orion_get_static_blocks() { |
This file contains hidden or 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 orion_static_block_shortcode_func( $atts, $content = '' ) { | |
if (!isset($atts['block']) || $atts['block'] == "") { | |
return; | |
} else { | |
$block_id = $atts['block']; | |
return siteorigin_panels_render($block_id); | |
} | |
} | |
add_shortcode( 'staticblock', 'orion_static_block_shortcode_func' ); |
This file contains hidden or 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('template_include', 'my_function_name'); | |
function my_function_name( $template ) { | |
if( is_post_type_archive( 'post-type-name' ) ){ | |
$template = dirname( __FILE__ ) . '/archive-posttype.php'; | |
} | |
if( is_single( 'post-type-name' )) { | |
$template = dirname( __FILE__ ) . '/single-posttype.php'; | |
} | |
return $template; | |
} |
This file contains hidden or 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
.widget_orion_team_w a { | |
pointer-events: none!important; | |
display: block; | |
} |
OlderNewer