Title: vtrn's Replies | WordPress.org

---

# vtrn

  [  ](https://wordpress.org/support/users/vtrn/)

 *   [Profile](https://wordpress.org/support/users/vtrn/)
 *   [Topics Started](https://wordpress.org/support/users/vtrn/topics/)
 *   [Replies Created](https://wordpress.org/support/users/vtrn/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/vtrn/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/vtrn/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/vtrn/engagements/)
 *   [Favorites](https://wordpress.org/support/users/vtrn/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 28 total)

1 [2](https://wordpress.org/support/users/vtrn/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/vtrn/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Rank Math SEO – AI SEO Tools to Dominate SEO Rankings] log](https://wordpress.org/support/topic/log-46/)
 *  Thread Starter [vtrn](https://wordpress.org/support/users/vtrn/)
 * (@vtrn)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/log-46/#post-17498157)
 * Hi, I found the problem.
   I have disabled the schema of products belonging to 
   a specific category using the following code:
 *     ```wp-block-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 occursHow can I avoid
   this error?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Site Kit by Google - Analytics, Search Console, AdSense, Speed] admin statistics](https://wordpress.org/support/topic/admin-statistics/)
 *  Thread Starter [vtrn](https://wordpress.org/support/users/vtrn/)
 * (@vtrn)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/admin-statistics/#post-17469287)
 * Hi, it worked, but there was a problem with your code
   You did not write { } for
   condition!Final code:
 *     ```wp-block-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:
 *     ```wp-block-code
       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 2 years, 4 months ago by [vtrn](https://wordpress.org/support/users/vtrn/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Changing the all filename field of WooCommerce products](https://wordpress.org/support/topic/changing-the-all-filename-field-of-woocommerce-products/)
 *  Thread Starter [vtrn](https://wordpress.org/support/users/vtrn/)
 * (@vtrn)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/changing-the-all-filename-field-of-woocommerce-products/#post-17462198)
 * Hi thanks
   Can you provide me with more information?Like Hook/Filter/Function 
   that does this
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Site Kit by Google - Analytics, Search Console, AdSense, Speed] admin statistics](https://wordpress.org/support/topic/admin-statistics/)
 *  Thread Starter [vtrn](https://wordpress.org/support/users/vtrn/)
 * (@vtrn)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/admin-statistics/#post-17454539)
 * `if ( !current_user_can( 'administrator' ) ) { G code }`
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Site Kit by Google - Analytics, Search Console, AdSense, Speed] admin statistics](https://wordpress.org/support/topic/admin-statistics/)
 *  Thread Starter [vtrn](https://wordpress.org/support/users/vtrn/)
 * (@vtrn)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/admin-statistics/#post-17454527)
 * 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
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Site Kit by Google - Analytics, Search Console, AdSense, Speed] admin statistics](https://wordpress.org/support/topic/admin-statistics/)
 *  Thread Starter [vtrn](https://wordpress.org/support/users/vtrn/)
 * (@vtrn)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/admin-statistics/#post-17452986)
 * Hi, I don’t mean admin tool bar! I want admin statistics not to be counted
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[All-In-One Security (AIOS) – Security and Firewall] salt for Custom wp-config.php location](https://wordpress.org/support/topic/salt-for-custom-wp-config-php-location/)
 *  Thread Starter [vtrn](https://wordpress.org/support/users/vtrn/)
 * (@vtrn)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/salt-for-custom-wp-config-php-location/#post-17442099)
 * No, I just have one question
   Does the [salt shaker plugin](https://wordpress.org/plugins/salt-shaker/)
   do the same thing as salt postfix feature in the aios plugin?Please answer with
   yes or no
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[All-In-One Security (AIOS) – Security and Firewall] salt for Custom wp-config.php location](https://wordpress.org/support/topic/salt-for-custom-wp-config-php-location/)
 *  Thread Starter [vtrn](https://wordpress.org/support/users/vtrn/)
 * (@vtrn)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/salt-for-custom-wp-config-php-location/#post-17433471)
 * So I have misunderstood
   Just to clarify:In this case, if at the same time, I 
   activate the plugin [https://wordpress.org/plugins/salt-shaker/](https://wordpress.org/plugins/salt-shaker/)
   and activate the salt postfix feature of the aios pluginIs there any problem?
   And these are not related to each other?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[All-In-One Security (AIOS) – Security and Firewall] salt for Custom wp-config.php location](https://wordpress.org/support/topic/salt-for-custom-wp-config-php-location/)
 *  Thread Starter [vtrn](https://wordpress.org/support/users/vtrn/)
 * (@vtrn)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/salt-for-custom-wp-config-php-location/#post-17432208)
 * And how can I make sure that after moving wp-config.php, there is no problem 
   with aios-bootstrap.php?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[All-In-One Security (AIOS) – Security and Firewall] salt for Custom wp-config.php location](https://wordpress.org/support/topic/salt-for-custom-wp-config-php-location/)
 *  Thread Starter [vtrn](https://wordpress.org/support/users/vtrn/)
 * (@vtrn)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/salt-for-custom-wp-config-php-location/#post-17432201)
 * 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Rank Math SEO – AI SEO Tools to Dominate SEO Rankings] Analytics problem](https://wordpress.org/support/topic/analytics-problem-6/)
 *  Thread Starter [vtrn](https://wordpress.org/support/users/vtrn/)
 * (@vtrn)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/analytics-problem-6/#post-17429806)
 * I 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.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[All-In-One Security (AIOS) – Security and Firewall] salt for Custom wp-config.php location](https://wordpress.org/support/topic/salt-for-custom-wp-config-php-location/)
 *  Thread Starter [vtrn](https://wordpress.org/support/users/vtrn/)
 * (@vtrn)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/salt-for-custom-wp-config-php-location/#post-17428813)
 * 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](https://wordpress.org/support/forum/miscellaneous/)
   
   In reply to: [change username](https://wordpress.org/support/topic/change-username-29/)
 *  Thread Starter [vtrn](https://wordpress.org/support/users/vtrn/)
 * (@vtrn)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/change-username-29/#post-17426204)
 * oh thats bad, so I suggest add the ability to change username and merge two accounts
 *   Forum: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
   
   In reply to: [change username](https://wordpress.org/support/topic/change-username-29/)
 *  Thread Starter [vtrn](https://wordpress.org/support/users/vtrn/)
 * (@vtrn)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/change-username-29/#post-17426173)
 * Yes, I got it
   I can not change my usernameBut support can’t do this for me?
 *   Forum: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
   
   In reply to: [change username](https://wordpress.org/support/topic/change-username-29/)
 *  Thread Starter [vtrn](https://wordpress.org/support/users/vtrn/)
 * (@vtrn)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/change-username-29/#post-17426077)
 * yes, on wordpress.org
 * Support can’t do this for me?

Viewing 15 replies - 1 through 15 (of 28 total)

1 [2](https://wordpress.org/support/users/vtrn/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/vtrn/replies/page/2/?output_format=md)