Skip to content

Remove Staff Social Options

Remove Staff Social Options

add_filter( 'wpex_staff_social_array', function( $profiles ) { unset( $profiles['dribbble'] ); // Remove Dribble unset( $profiles['skype'] ); // Remove Skype return $profiles; } );

Read more

Alter The Blog Entry & Post Gallery Slider Settings

// 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'] =…

Read more

Add Customizer Settings

// 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…

Read more

Alter WooCommerce Order Received Title

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 );

Read more

Polylang Support for WooCommerce Buttons

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…

Read more

Add a Shortcode to the Editor Options

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; } );

Read more
Back To Top