Remove Staff Social Options
add_filter( 'wpex_staff_social_array', function( $profiles ) { unset( $profiles['dribbble'] ); // Remove Dribble unset( $profiles['skype'] ); // Remove Skype return $profiles; } );
add_filter( 'wpex_staff_social_array', function( $profiles ) { unset( $profiles['dribbble'] ); // Remove Dribble unset( $profiles['skype'] ); // Remove Skype return $profiles; } );
// Filter the data attributes to add to the blog gallery slider wrapper add_filter( 'wpex_blog_slider_data_atrributes', function( $attributes ) { // Alter your settings $attributes['auto-play'] = 'false'; $attributes['buttons'] = 'false'; $attributes['fade'] = 'true'; $attributes['loop'] = 'true'; $attributes['thumbnails-height'] = '60'; $attributes['thumbnails-width'] =…
// Add new settings to the Customizer Total panels. function myprefix_customizer_settings( $sections ) { // Add new setting under the header > logo section $sections['wpex_header_logo']['settings']['myprefix_setting_id'] = array( 'id' => 'myprefix_setting_id', 'default' => 'default_value', 'control' => array( 'label' => __( 'Setting…
function myprefix_title_order_received( $title ) { if ( function_exists( 'is_order_received_page' ) && is_order_received_page() ) { $title = "YOUR CUSTOM TEXT"; } return $title; } add_filter( 'wpex_title', 'myprefix_title_order_received', 99 );
add_filter( 'wpex_excerpt_output', function( $excerpt ) { global $post; if ( $post && 'testimonials' == $post->post_type && $post->post_excerpt ) { $readmore = 'ID ) .'" title="Read More" rel="bookmark">read more →'; return $post->post_excerpt .' '. $readmore; } return $excerpt; } );
This function filters the options you select in the WooCommerce settings for the shop, cart and checkout pages so that they return the correct page based on the current language for functions such as the add to cart button or…
add_filter( 'wpex_title', function( $title ) { if ( is_search() ) { return 'Your Custom Text'; } return $title; }, 50 );
// Remove staff relationship add_filter( 'wpex_staff_users_relations', '__return_false' ); // Removes social options add_filter( 'wpex_get_user_social_profile_settings_array', '__return_null' );
add_filter( 'wpex_shortcodes_tinymce_json', function( $data ) { // Add your custom shortcode $data['shortcodes']['my_custom_shortcode'] = array( 'text' => __( 'Custom Shortcode', 'total' ), 'insert' => '[custom_shortcode parameter1="value"]', ); // Return data return $data; } );
Many functions in the theme use the WordPress oEmbed function which "strips" parameters from the URL. To add the parameters you must use a custom field via a child theme to override the output such as the example below: