How to exclude a category returned by get_categories from function.php?

I have a plugin that create my website sitemap. It starts by getting all categories with get_categories and then gets all pages for each. However I have one category that must not be included then I did that in the plugin code:

$  args['exclude']=2; $  cats = get_categories( $  args ); 

The problem is that if the plugin replace the file my modiofication will be deleted, I tried with that:

function exclude_cat($  taxonomy, $  args) {          $  args['exclude']=2;     return $  args; }  add_filter('get_categories_taxonomy', 'exclude_cat', 10, 2); 

But then no category is returned at all, I think I’m not using it correctly but I don’t find examples.

How to exclude rule 930120 for google oauth

I’ve this error:

ModSecurity: Warning. Matched "Operator `PmFromFile' with parameter `lfi-os-files.data' against variable `ARGS:scope' (Value: `email profile https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/useri (16 characters omitted)' ) [file "/usr/local/owasp-modsecurity-crs-3.0.2/rules/REQUEST-930-APPLICATION-ATTACK-LFI.conf"] [line "84"] [id "930120"] [rev "4"] [msg "OS File Access Attempt"] [data "Matched Data: .profile found within ARGS:scope: email profile https:/www.googleapis.com/auth/userinfo.profile https:/www.googleapis.com/auth/userinfo.email openid"] [severity "2"] [ver "OWASP_CRS/3.0.0"] [maturity "9"] [accuracy "9"] [tag "application-multi"] [tag "language-multi"] [tag "platform-multi"] [tag "attack-lfi"] [tag "OWASP_CRS/WEB_ATTACK/FILE_INJECTION"] [tag "WASCTC/WASC-33"] [tag "OWASP_TOP_10/A4"] [tag "PCI/6.5.4"] [hostname "a.a.a.a"] [uri "/***/create_account_oauth.php"] [unique_id "159608684932.394214"] [ref "o53,8v144,116t:utf8toUnicode,t:urlDecodeUni,t:normalizePathWin,t:lowercase" 

and I’ve created this exclusion rule for that:

SecRule REQUEST_URI "@beginsWith /***/create_account_oauth.php" \         "phase:2,log,pass,id:19023,ctl:ruleRemoveById=930120" 

what I’d like to do is to refine the exclusion for googleapis only. I’m think chaining the rule with another one to match googleapis in the data field. Is that what you’d recommend? It seems difficult to find resource on chaining. Can someone please help? Thank you.

Can I exclude characters from understanding my magically understandable speech from the monk’s Tongue of the Sun and Moon feature?

The rules for the monk ability Tongue of the Sun and Moon state:

Starting at 13th level, you learn to touch the ki of other minds so that you understand all spoken languages. Moreover, any creature that can understand a language can understand what you say.
PHB, pp.79

The text says that this ability is something you learn to do, not something that simply happens to you, so it’s not necessarily always on. Further, it seems logical to say that this is something you would do actively. That is, you could choose not to touch someone’s mind, thereby excluding them from understanding you. You could also choose not to understand someone yourself, just in case they’re telling the funniest joke in the world, or using a subliminal trigger.

Assuming you can choose not to touch someone’s mind, let’s reason further. Suppose you’re speaking and don’t know that there is someone listening in nearby. Would they understand you, i.e. is the default that you are or aren’t touching someone’s mind? Similarly, if you are speaking to a large group of people, would you have to focus on all of them at once for them to understand you? Would this take effort? Is there a range?

My questions are:

  1. Can you exclude some characters from understanding you while allowing others to do so?
  2. Can you decide not to understand someone who is speaking?

Basically, these boil down to: Can you choose not to touch someone’s mind?

Then, assuming that the answer to the above is yes:

  1. Do you have to know someone is listening in order for them to understand you?
  2. Is there a limit to the number of people you can affect? A range?

I also asked this related question about the mechanism of the ability.

Exclude category from function – PHP

I have the following code in my functions.php to move product category description to the bottom of the category page.

remove_action( 'woocommerce_archive_description', 'woocommerce_taxonomy_archive_description', 10 ); add_action( 'woocommerce_after_shop_loop', 'woocommerce_taxonomy_archive_description', 100 ); 

However, I need to exclude a few product categories from this (and keep them at the top), how would I convert my code into a function that can achieve this?

Can Selective Spell be used to exclude a swarm from targeting?

I’m researching the attack spells available to druids. Creeping Doom looks very useful for some situations, but it seems like it doesn’t combine well with other spells like Flame Strike and Fire Storm since you’ll quickly destroy your own swarms. Can a druid use Selective Spell to mitigate this by excluding the swarms?

SP13 – Exclude File Title From Search Results

Scenario: I created a Advance Search Web Pat with Result Source connected to a particular document library. When I enter a topic the results returns document title and more metadata.

Question: Is there a way to exclude the document title from the search results but have the other results appear?

I have changed the search setting to no but I want the search results to still appear but without the document title.

Is this possible?