Trying to find where %3$s is defined [closed]

There should be a sprintf function somewhere, which has $items_wrap as its first argument. The %3$s is merely the 3rd argument placeholder that gets replaced with something. See » https://www.php.net/manual/en/function.sprintf.php

Add custom data attribute to every core Gutenberg Blocks

I found the solution: I removed addFilter(‘blocks.getSaveContent.extraProps’, ‘luxuryconcept/add-custom-props’, addCustomProps); as @TomJNowell recomended. I added the add_filter(‘render_block’, ‘theme_custom_add_custom_attributes’, 10, 2); PHP code to functions.php: So, here all the working code: JS: /** * * Extends Core Gutenberg Blocks functionalities * * @description Add data-delay and data-duration attributes to every Gutenberg Core Blocks * @package luxuryconcept * … Read more

in_footer: gives syntax error

As of WordPress 6.3, the in_footer parameter is now bundled into the args array parameter (source). The correct syntax for the wp_enqueue_script() function is now as follows (leaving out the named function parameter as it not officially supported by WP core): wp_enqueue_script( string $handle, string $src=””, string[] $deps = array(), string|bool|null $ver = false, array|bool … Read more

Conditional concerning a selected tag not working

isset() checks to see if a variable is set, ie, has a value other than null. The way you’re using it will always return true because you’ve set $posttags to ‘animali permessi’, which is not null. I think you’re looking for the WordPress function has_tag() instead. if (has_tag( ‘animali permessi’, $post ) ) { $supplemento_animali … Read more

Date not working correctly

What you did wrong here is the part date(‘d’, $rem_days). The function date() should be used to convert timestamp to a formatted date, not to converting a time difference in timestamp to time difference in days. You can fix this by replacing date(‘d’, $rem_days) with floor($rem_days/86400). The complete code should be: $event_date = strtotime( get_field( … Read more