how to remove a tag in the_category function
how to remove a tag in the_category function
how to remove a tag in the_category function
You can use deactivate_plugins() function to deactivate a plugin if ( ! wp_next_scheduled( ‘deactivate_plugin_conditional_hook’ ) ) { wp_schedule_event( time(), ‘twicedaily’, ‘deactivate_plugin_conditional_hook’ ); } add_action( ‘deactivate_plugin_conditional_hook’, ‘deactivate_plugin_conditional_2345678999343434’ ); function deactivate_plugin_conditional_2345678999343434() { $plugin_path=”plugin-folder/plugin-name.php”; if ( is_plugin_active($plugin_path) ) { deactivate_plugins($plugin_path); } } You can set custom event see here https://codex.wordpress.org/Function_Reference/wp_schedule_event Note: this is not tested code
wp_footer hook causing text to show on bottom of page
So, i managed to achieve what i want by directing the exisiting window.location.href to a newly created php file i put in the root called .login.php. I will share the code below as it handles the user roles nicely when logging in using this jquery method .login.php <?php require_once(‘wp-load.php’); function user_role_check_modal( $role, $user_id = null … Read more
You can put svg text right in the prev_text and next_text. To make it a little more readable here I’ve broken it up and prepared the SVG markup first. I am only show you the “prev” link but the “next” would work the same way. $prev_label = “<span class=”cover–nav-label”>” . _e(‘Recette précédente’, ‘marque’) . “</span>”; … Read more
The function get_template_directory_uri() returns the path without trailing slash. So you need to write wp_register_script( ‘aosjs’, get_template_directory_uri() . ‘/js/aos.js’,…) Note the slash before “https://wordpress.stackexchange.com/questions/328563/js/aos.js”. What good for is this line, the script file should already be loaded: <script src=”https://wordpress.stackexchange.com/questions/328563/js/aos.js”></script>
There’s nothing wrong with leaving it all alone and only using the custom CSS in the customizer. In fact it’s a better way to do it since it will allow you to add the style you want, at the level you want and override the base styles provided in the theme and child themes.
You have to leverage the woocommerce wc_product_post_class filter. The following code should do the trick. function my_strip_tag_class( $classes ) { global $post; $product_tags = get_the_terms( $post->ID, ‘product_tag’ ); if( $product_tags ) foreach ( $product_tags as $tag ) { $tag_index = array_search($tag, $classes); if($tag_index !== false){ unset($classes[$tag_index]); } } return $classes; } add_filter( ‘wc_product_post_class’, ‘my_strip_tag_class’ );
How are you printing the contents of the ACF field in your site code? Assuming that you have self-coded theme files, instead of using the_field() to print the field content, you should echo get_field() passed through the ‘the_content’ filter, eg: echo apply_filters( ‘the_content’, get_field( ‘my_field_name’ ) ); and it will apply the modifications from your … Read more
After some discussing in the comments, I can surmise that this is your situation: You have functionality for processing a user registration in some way when a form is submitted. You need a way in the CMS to specify which forms this processing needs to happen for. What it looks like you’re attempting to do … Read more