Alter the WordPress Comments Submit Button Text
function myprefix_comment_form_args( $args ) { $args['label_submit'] = 'Custom submit text'; return $args; } add_filter( 'comment_form_defaults', 'myprefix_comment_form_args' );
function myprefix_comment_form_args( $args ) { $args['label_submit'] = 'Custom submit text'; return $args; } add_filter( 'comment_form_defaults', 'myprefix_comment_form_args' );
function myprefix_breadcrumbs_trail( $trail ) { // Remove cart from trail unset( $trail['shop'] ); // Return trail return $trail; } add_filter( 'wpex_breadcrumbs_trail', 'myprefix_breadcrumbs_trail', 20 );
// Example 1: Restrict access to whole site and redirect to the wordpress login page add_action( 'template_redirect', function() { // Front end only and prevent redirections on ajax functions if ( is_admin() || wp_doing_ajax() ) { return; } // Redirect…
The following snippet can be used to hide all the settings in the Theme Settings metabox for non-admins. Note, if you wish to hide all the settings from everyone you can use the option in the Theme Panel.
Make sure to change 'PAGE_ID' with the ID of the page where you want to disable responsiveness or change the entire is_page() conditional for your own conditional checks.
IMPORTANT: This function is already built-into Total 4.5+
function myprefix_remove_deprecated_notice_on_vcex_callout() { vc_map_update( 'vcex_callout', array( 'deprecated' => false, ) ); } add_action( 'vc_after_init', 'myprefix_remove_deprecated_notice_on_vcex_callout' );
add_action( 'init', function() { remove_action( 'wpex_hook_wrap_top', 'wpex_top_bar', 5 ); add_action( 'wpex_hook_header_top', 'wpex_top_bar', 1 ); } );
// Remove title from page header area add_action( 'init', function() { remove_action( 'wpex_hook_page_header_inner', 'wpex_page_header_title' ); remove_action( 'wpex_hook_page_header_content', 'wpex_page_header_title' ); // Total v5+ } );