Save multiple checkboxes with Types

Remove apply_filters() and just pass the array values into your wp_insert_user: array( ‘first_name’ => $nombre, ‘last_name’ => $apellidos, ‘user_pass’ => $contrasena, ‘user_login’ => $username, ‘user_email’ => $email, ‘role’ => ‘subscriber’, ) WordPress already managed those apply_filters, so there’s no reason to use them in your code. Hope it helps! Me dices si te sirvió, también … Read more

Exclude specific product tags from related products in WooCommerce 3+ [closed]

The first parameter of the filter gets its value from function wc_get_product_term_ids: http://hookr.io/filters/woocommerce_get_related_product_tag_terms/ This function returns an array of term_ids instead of objects: https://docs.woocommerce.com/wc-apidocs/source-function-wc_get_product_term_ids.html#860-871 So you can match the term id values directly or you can use get_term_by to get one of the term objects in the comparison. e.g. getting the term on the right … Read more

Google Tag Manage – to use or not to use

I don’t see any reason to change if all is working fine as it is, and you don’t need to add anything new supported by tag manger. I use my own plugin to integrate analytics and few other things, and I don’t plan to waste time doing exactly the same thing using different tools, and … Read more

i am create wordpress plugin that show error?

If you want to add headers this can only be done before you are returning data. Headers are send at the start of a response from the browser. What probably goes wrong is that you have an empty line on the top of your file. Or you do somewhere an echo (or something a like). … Read more

Custom Post type easy way for editors

First, create your desired custom post types. Since you are not yet familiar with coding, use a plugin from the wordpress directory https://wordpress.org/plugins/custom-post-type-ui/ Now that you created your own custom post types, you need to create the templates for each custom post type. This will allow you to have different ways of presenting the articles … Read more

How to remove search bar from the blog post

This is added by the theme you are using. And, unless there is an option in theme settings (or customizer) to remove it, you can’t do much about it, because you are hosting on WordPress.com, and unless you pay for the premium plan, you can’t modify plugins or themes.