Multi str_replace php
str_replace( array( '<', '>', '/', ',', '{', '}', '?', '*' ), '', $value[0]->post_content )
Copy this code to your functions.php file add_action( ‘bp_setup_nav’, ‘wdes_bp_add_nav_item’, 100 ); function wdes_bp_add_nav_item(){ // Add music page in my profile menu item bp_core_new_nav_item( array( ‘name’ => ‘My Music’, ‘slug’ => ‘my-music’, ‘default_subnav_slug’ => ‘sub-music’, ‘screen_function’ => ‘my_music_screen_function’, ‘show_for_displayed_user’ => true, ‘position’ => 160 ) ); // Add upload music page in my profile menu…
Having trouble of this errors? Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /home/wwwcreat/public_html/wp-content/plugins/wp-post-corrector/wp_export.php on line 12 Warning: session_start() [function.session-start]: SAFE MODE Restriction in effect. The script whose uid is 610 is not allowed to access /tmp owned by uid 0 in /home/sitename/public_html/wp-content/plugins/custom-field-suite/includes/classes/form.php on line 42 Fatal error: session_start() [function.session-start]: Failed to…
How to make video iframe responive? Copy the CSS below and make sure that there is a ” iframe-wrap ” before the iframe element. CSS .iframe-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; } .iframe-wrap iframe, .iframe-wrap object, .iframe-wrap embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%;…
Dequeue or deregister a style or script of JS Composer WordPress plugin using your current theme functions.php. Paste the codes below. <link rel=’stylesheet’ id=’js_composer_front-css’ href=’http://mytravelpersonality.com/temp/wp-content/plugins/js_composer/assets/css/js_composer.min.css?ver=5.0.1′ type=’text/css’ media=’all’ /> <script type=’text/javascript’ src=’http://mytravelpersonality.com/temp/wp-content/plugins/js_composer/assets/js/dist/js_composer_front.min.js?ver=5.0.1′></script> add_filter( ‘vc_shortcode_output’, ‘anton_vc_shortcode_output’, 10, 4 ); function anton_vc_shortcode_output($output, $xx, $atts ){ wp_dequeue_style( ‘js_composer_front’ ); wp_dequeue_script( ‘wpb_composer_front_js’ ); return $output; }
I have a search form to add below page title using Visual Composer Fancy title (the7 WordPress theme) page editor. I look for alternative solutions that I can insert my additional HTML content. Lucky me to found it, and here’s the code on how to add additional content. Add this code on your functions.php, can…
How to check if there is an ajax running on your page? Here’s a code below that can help you figure it out. jQuery( document ).ready(function($) { $(document).ajaxStart( function() { console.log(‘ajax true’ ); }).ajaxStop( function() { console.log(‘ajax false’ ); }); });