vtrn
Forum Replies Created
-
Forum: Plugins
In reply to: [Rank Math SEO – AI SEO Tools to Dominate SEO Rankings] logHi, I found the problem.
I have disabled the schema of products belonging to a specific category using the following code:add_filter( 'rank_math/snippet/rich_snippet_product_entity', function ($data) { $term_ids = array(); $product_cats = wp_get_post_terms(get_the_ID(), 'product_cat'); foreach ($product_cats as $product_cat) { $term_ids[] = $product_cat->term_id; } $exclude_category_ids = array( 1665, 1668); if (array_intersect($exclude_category_ids, $term_ids)) { return false; } return $data; } );
And when I open a product in these categories
This error occurs
How can I avoid this error?Hi, it worked, but there was a problem with your code
You did not write { } for condition!
Final code:add_filter( 'googlesitekit_analytics-4_tag_blocked', 'restrict_analytics_snippet' ); function restrict_analytics_snippet( $original ) { if (current_user_can( 'manage_options' ) ) { return true; } }
But I have a question, don’t we need to return the initial value after this condition?
like:
add_filter( 'googlesitekit_analytics-4_tag_blocked', 'restrict_analytics_snippet' ); function restrict_analytics_snippet( $original ) { if ( current_user_can( 'manage_options' ) ) { return true; } return $original; or
return true;
? }- This reply was modified 8 months, 3 weeks ago by vtrn.
Forum: Plugins
In reply to: [WooCommerce] Changing the all filename field of WooCommerce productsHi thanks
Can you provide me with more information?
Like Hook/Filter/Function that does thisif ( !current_user_can( 'administrator' ) ) { G code }
Thank you, but I just want to exclude the statistics of the admin role!
Is there no way?
For example, the command to the function that inserts the code
Hi, I don’t mean admin tool bar! I want admin statistics not to be counted
No, I just have one question
Does the salt shaker plugin do the same thing as salt postfix feature in the aios plugin?
Please answer with yes or noSo I have misunderstood
Just to clarify:
In this case, if at the same time, I activate the plugin https://www.ads-software.com/plugins/salt-shaker/ and activate the salt postfix feature of the aios plugin
Is there any problem? And these are not related to each other?And how can I make sure that after moving wp-config.php, there is no problem with aios-bootstrap.php?
I just want to make sure
If aios does not edit the salts in wp-config.php, where does it edit? Does WordPress have another salt?Or is salt the aios plugin something else and I have misunderstood?
Forum: Plugins
In reply to: [Rank Math SEO – AI SEO Tools to Dominate SEO Rankings] Analytics problemI live in Iran, but the site server is located in Germany
As I said, I connect with the Google Kit plugin without any problems, I don’t think this is problem.Yes, I mean salt postfix feature!
In WordPress, aren’t the salt keys saved and edited in wp-config.php?I haven’t tested this, but you are telling me that by changing the path of the wp-config.php file to outside root, there will be no problem with the salt postfix feature?
And still the Aios plugin can apply its changes?Also, if there is another issue with changing the wp-config.php file path, please tell me
Forum: Everything else WordPress
In reply to: change usernameoh thats bad, so I suggest add the ability to change username and merge two accounts
Forum: Everything else WordPress
In reply to: change usernameYes, I got it
I can not change my username
But support can’t do this for me?Forum: Everything else WordPress
In reply to: change usernameyes, on www.ads-software.com
Support can’t do this for me?