How to disable/enable a plugin at a specific time

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

I want to customize the_posts_navigation function by replacing prev and next with images

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

Unable to declare AOS library in functions

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>

Remove generated category and tag class names from woocommerce product & blog listings markup

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

Assign IDs to headings in ACF using functions.php

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