A flow based on this article
AR: my comments will start with four hashes
| <?php | |
| add_action( 'acf/init', 'set_acf_pro_license' ); | |
| function set_acf_pro_license() { | |
| global $acf_instances; | |
| if ( isset( $acf_instances['ACF_Admin_Updates'] ) && ! get_option( 'acf_pro_license' ) ) { | |
| /** | |
| * @var ACF_Admin_Updates $acf |
| /* - woo cat toggling elements, injected via jQuery - */ | |
| /* make list item be relative, to be able to position toggle within this item, if desired */ | |
| #sidebar .widget_product_categories ul.product-categories > li.cat-parent { | |
| position: relative; | |
| } | |
| /* the new toggle element wrapper, which is added via jQuery */ | |
| #sidebar .widget_product_categories ul.product-categories > li.cat-parent .woo-cat-toggle { | |
| cursor: pointer; | |
| display: inline-block; |
A flow based on this article
AR: my comments will start with four hashes
| <?php | |
| /** | |
| * Generico Core | |
| * | |
| * Core plugin, holding theme-agnostic functionality specific to the site. | |
| * | |
| * @package Generico\Core | |
| * @author Craig Simpson <[email protected]> | |
| * @license MIT | |
| * @link https://craigsimpson.scot |
| function enzothecat_add_lazy_loading($content) { | |
| $content = preg_replace('/src="/', 'loading="lazy" src="', $content); | |
| return $content; | |
| } | |
| add_filter('the_content', 'enzothecat_add_lazy_loading'); |
| <?php | |
| /** | |
| * Disables Minify for inline CSS. | |
| * https://github.com/wp-media/wp-rocket/blob/v2.11.3/inc/front/minify.php#L72 | |
| */ | |
| add_filter( 'rocket_minify_html_options', function ( $html_options ) { | |
| $html_options = array(); | |
| return $html_options; |
| wp_ewwwio_ngg2_optimize_cron_interval | |
| wp_ewwwio_ngg_optimize_cron_interval | |
| wp_ewwwio_flag_optimize_cron_interval | |
| wp_ewwwio_media_optimize_cron_interval | |
| wp_ewwwio_image_optimize_cron_interval |
| { | |
| "repositories": [ | |
| { | |
| "type": "package", | |
| "package": { | |
| "name": "advanced-custom-fields/advanced-custom-fields-pro", | |
| "version": "5.1.3", | |
| "type": "wordpress-plugin", | |
| "dist": { | |
| "type": "zip", |
| (function(w, n) { w[n] | |
| = w[n] || []; | |
| w[n].push(() => { | |
| w.YandexZen.renderWidget({ | |
| clid: ['9110', '9111'], // partner's identifier (for testing purposes only) | |
| container: '.widget-container', // element selector or dom-element where the widget will be inserted | |
| successCallback: function () { // called when the widget is inserted successfully | |
| console.log('widget mount succeed'); // replace function body with your handler or delete this field | |
| }, | |
| failCallback: function () { // called in case of problem while widget insertion |
| <?php | |
| /** | |
| * @link https://github.com/elementor/elementor/issues/3136#issuecomment-361602293 | |
| */ | |
| global $elementor_widget_blacklist; | |
| $elementor_widget_blacklist = [ | |
| ,'common' | |
| ,'heading' | |
| ,'image' |