Add WordPress hook outside of Plugin or Theme

We have the following code that is used to hide our core theme so that it can’t be enabled directly and you can only enable the child themes from the WordPress Dashboard.

function hide_core_theme($  themes) {     unset($  themes['nacore']);     return $  themes; } add_action('wp_prepare_themes_for_js', 'hide_core_theme'); 

However if you put this code inside the functions.php file of either the Parent or Child theme it will only hide the core theme when one of them is enabled… e.g. if someone was to turn on another theme the core theme would appear again.

Another option is to add this code inside a custom plugin… but it means having it enabled and a user could always disable this plugin to get around it… plus we’re not too keen on having a plugin to turn off a theme as it feels pretty detached.

Is it possible to add some hooks that are outside of a Theme or Plugin? And therefore are called regardless of what themes or plugins are enabled?

Can I use Zephyr Strike outside of combat to increase my running speed?

The spell Zephyr Strike, from XGE, has the following text:

You move like the wind. Until the spell ends, your movement doesn’t provoke opportunity attacks. Once before the spell ends, you can give yourself advantage on one weapon attack roll on your turn. That attack deals an extra 1d8 force damage on a hit. Whether you hit or miss, your walking speed increases by 30 feet until the end of that turn.

Clearly this spell was written with combat in mind. I’m curious what support, if any, exists for using it outside of combat for the purpose of increasing a character’s movement speed, for instance in a foot chase.

What I would like to happen: I cast Zephyr Strike, waive the attack, and immediately trigger the bonus 30 feet of speed (say, to 60 ft). Since Zephyr Strike’s casting time is a bonus action, I then take the dash action, doubling my speed to 120 feet. I have this speed for 6 seconds.

My interpretation of the spell as written: The bonus to speed requires the player to take the attack action. The extra speed only lasts until the end of the turn. So to gain the speed benefit, a player must attack something, which uses their action and prevents the use of the dash action while under the effect of the spell.

Obviously the DM can rule however they want, but I’m curious what support the rules might have for my preferred outcome.

Some wordpress plugins doesn’t work so well on external php page outside wordpress?

I am using some php pages (outside wordpress)

The page name :

Test.php in the path (www)

I used

require_once('wp-load.php');  include('wp-config.php'); get_header(); 

The problem is that there are some plugins that doesn’t work probably in these pages, is there anyway to define these pages as a wordpress page ?

Can you summon a spiritual weapon into the bubble created by Bead of Force? Can whoever is inside cast charm person on someone outside the bubble?

The wording for Bead of Force says "Only breathable air can pass through the sphere’s wall. No Attack or other Effect can." which obviously means that spells such as firebolt or ray of sickness could not harm a creature inside. However, what about spells that only require line of sight?

I’ve read the discourse on Wall of Force, which suggests that you would not be able to do such spells, and the wording is similar to Bead of Force.

How could a dragon deal with the spell Hide from Dragons efficiently when hunting alone outside his lair?

The typical known means to defend against Hide from Dragons are focused around dragons inside his lair, like using non-dragon minions, traps, magical alarms, dispelling screens and what-not, but that’s all only valid for a static environment.

How could he deal with this spell when going outside his lair alone to hunt? Specially if he knows there might be pesky adventurers trying to ambush him? And then do it efficiently (that is, wasting the least amount of resources, while hunting for extended periods of time)?.

I’d also like to see a solution (if possible) that allows him to retain his flavor, for example, he could (if the spell only cares about the type, unsure) trivially beat the spell by simply polymorphing into something non-dragon, but he doesn’t want to lower himself by transforming into a lesser creature, that kind of thinking.

For reference, Hide from Dragons, SC p.114:

Abjuration Level: Assassin 4, bard 5, sorcerer/   wizard 7 Components: S, M Casting Time: 1 standard action Range: Touch Targets: One creature touched/   2 levels Duration: 10 minutes/level (D) Saving Throw: Will negates   (harmless) Spell Resistance: Yes (harmless)  Silently you make the motions and the dragon’s scale smolders in your hand. The rising smoke wraps around you and sinks into your skin.  Dragons cannot see, hear, or smell the warded creatures, even with blindsense. They act as though the warded creatures are not there. Warded creatures could stand before the hungriest of red dragons and not be molested or even noticed. If a warded character touches or attacks a dragon or the dragon’s hoard, even with a spell, the spell ends for all recipients.   Material Component: A dragon scale. 

Using pools outside of combat

Rules for Shadowrun 3e on page 43 states that:

Dice pools initially become available for use at full value as the first step of the first Combat Turn of any encounter.

I interpret it as pools being available only during combat. However, I find it very strange that i.e. casting spells is much easier during combat than outside of initiative.

Is there any other part of rules that allows usage of pools outside of combat? I not, does anybody have some coherent set of house rules governing usage of pools outside of initiative?

Should a PC get XP for assisting outside of combat?

Related, but about a PC not participating at all in a combat: Do people get XP for battles they weren't in?

Generally, experience points for a combat encounter are divided equally among the participants.

If a PC does not participate directly in a combat, but significantly contributes to the success of the party in another way, should they count as part of the combat party for the purposes of awarding XP?

For example:

  • A PC scouts out the party that the PC’s are planning to attack and relays back essential intelligence that allows the rest of the PC’s to win the combat, but then the scout PC goes on another scouting mission or does something else rather than join the actual fight.
  • A PC provides equipment, buffs, money, logistical support, diversionary tactics, or other resources to those who end up participating in the combat, but withdraws before the first round of “combat” begins. For example, a PC turns themselves in to the Town Guard and confesses to an offense. While the Town Guard is occupied in processing the PC into jail, the rest of his party attacks Town Hall.

Are these kinds of PC’s actually considered participants in the combat, even though they did not actually swing a weapon, cast an offensive spell, etc.? That is, these are PC’s that contributed, but did not specifically have any “combat rounds” where they had opportunities to take combat actions, roll dice, be wounded, etc.

If whether these roles count for XP is dependent on criteria, what differentiates an XP-worthy support role versus a non-XP-worthy support role? Could it, as @NautArch alluded to, involve whether the support PC risks their life or endures a substantial risk of being drawn into a literal round of combat (even though they successfully avoid it)? It would be more plausible, I think, to award XP to a PC who pilots a scout balloon over enemy territory and risks being shot at (even though he ends up not being shot at because the enemy does not see him as a sufficient threat because reasons), than it would be to award it to a PC who stays at home and casts buff spells on those going out.

The real life equivalents of the characters that I’m talking about here are essential elements of any real-life military, militia, or law-enforcement group – they are the drivers, transport pilots, dispatchers, mechanics, radio operators, cargo loaders, intelligence analysts, scouts, code breakers, etc. who enable the literal people on the ground with the weapons to accomplish their job.

Problem with “does not evaluate to a numeric scalar at the coordinate {2.75,3/2}, but it is outside domain

enter image description here

Problem with "does not evaluate to a numeric scalar at the coordinate {2.75,3/2}, but that point is outside domain. How can I fix it??

Remove["Global`*"] ; Needs["NDSolve`FEM`"] HeatTransferModelAxisymmetric[T_, {r_, z_}, k_, ρ_, Cp_,Velocity_, Source_] := Module[{V, Q}, V = If[Velocity === "NoFlow", 0, Velocity.Inactive[Grad][T, {r, z}]]; Q = If[Source === "NoSource", 0, Source];(1 - (r)^2 - ((1 - 0.5^2)/(Log[1/0.5]))*Log[1/r])*D[T, z] +1/r*D[-k*r*D[T, r], r] + D[-k*D[T, z], z] + V - Q] op = HeatTransferModelAxisymmetric[T[r, z], {r, z}, k, ρ, Cp,"NoFlow", "NoSource"] parameters = {k -> 10, d -> 10}; Subscript[Γ, flux] = NeumannValue[40*(500 - T[r, z]), r == 2.5]; Subscript[Γ, temp] = DirichletCondition[T[r, z] == 1200, r == 1]; Subscript[Γ, enter] = DirichletCondition[T[r, z] == 800, z == 0]; Ω = Rectangle[{1, 0}, {2.5, 3}]; pde = {op == Subscript[Γ, flux],Subscript[Γ, temp],Subscript[Γ, enter]} /. parameters; Tfun =NDSolveValue[pde, T, {r, z} ∈ Ω]; MassTransferModelAxisymmetric[c_, {r_, z_}, d_, Velocity_, Source_] :=Module[{V, Q},V = If[Velocity === "NoFlow", 0, Velocity.Inactive[Grad][c, {r, z}]];Q = If[Source === "NoSource", 0, Source];(1 - (r)^2 - ((1 - 0.5^2)/(Log[1/0.5]))*Log[1/r])*D[c, z] + 1/r*D[-d*r*D[c, r], r] + D[-d*D[c, z], z] + 4.67`*^14*Exp[-36635/(Tfun[r, z])]*c + V - Q] op2 = MassTransferModelAxisymmetric[c[r, z], {r, z}, d, "NoFlow","NoSource"] Subscript[Γ, enter] = DirichletCondition[c[r, z] == 800, z == 0]; pde2 = {op2 == Subscript[Γ, enter]} /.parameters;cfun=NDSolveValue[pde2, c, {r, z} ∈ Ω]; 

Can the area of the additional spell effect of Druid Grove extend outside the area of Druid Grove?

The spell druid grove (XGtE, pg. 154) lists several effects that the caster may impose on the spell’s area (30-90 ft. cube). The spell also comes with an "Additional Spell Effect"; this reads:

You can place your choice of one of the following magical effects within the warded area:

  • A constant gust of wind in two locations of your choice
  • Spike growth in one location of your choice
  • Wind wall in two locations of your choice

So you select one of these spell effects and choose the location of its point of origin within the druid grove area.

The each spell’s listed area of effect can easily extend beyond the boundaries of the druid grove, especially if you only create a 30 foot cube grove.

Can the area of effect of the additional spell effect extend beyond the boundaries of the grove, or does the grove restrict the spell’s listed area?

As an example see this diagram. Here we have a 30 by 30 foot druid grove, and a 20 foot radius spike growth centered at the center of the grove:

enter image description here

Does such an arrangement work? Or must the spike growth be confined to the 30 x 30 foot area of the grove?