CPT email notification including only new value custom fields

I have a custom post type «teams» with a set of different custom fields (ACF). I’m not a big coder, but hope to get some guidance in how to create a function that sends an email including ACF every time one of the teams (CPT) is updated by a WP-user.

I’ve found plugins that accomplish this, but unfortunately I need a bit more complex solution. The problem is the email should ONLY include custom fields that actually has changed. So I need to loop through and check each custom field for any change, and then only include the fields that has a new value in the final email.

I guess I’m asking if this is a very difficult task, or could it be done in a rather simple way? All sources would be very appreciated!

Is this Hemokatín (Vampire) race (Including all 6 Subraces) balanced with official races?

I want to see if this race is balanced in comparison to the Dungeons and Dragons Fifth Edition official races.

Hemokatín Racial Traits

Ability Score Increase. Your Charisma increases by 2.

Age. Most Hemokatín mature slightly faster than humans, though Bloodlines are simply seen as early bloomers. They then age much slower than humans, living up to 750 years old.

Alignment. Most Hemokatín born to Hemokatín are good aligned, hating to see others suffer and only drinking blood directly from humanoids when desperate. They also love self-expression, and tend to be chaotic in alignment. Bloodlines are often neutral, reflecting their human sides.

Size. Hemokatín are the exact same size as humans. Your size is Medium.

Speed. You have a base walking speed of 30 feet.

Bite. You can bite creatures as an unarmed strike. If you hit an undead or construct, you deal 1 piercing damage, rather than bludgeoning damage. If you grapple any other creature as an action on your turn, you can immediately use this attack as a bonus action. If you hit, you deal 1 piercing damage, plus 1d8 necrotic damage, and you regain hit points equal to the damage dealt. If the humanoid’s hit point total reaches 0, they fall unconscious but are stable for 1d12 days, rising on the night after the last day as a Hemokatín. They gain the Hemokatín racial traits, except for speed and size, and lose any racial traits they had before, and regain all of their hit points.

If you do not use this attack against a living creature as described above for 3 weeks in game-time, you go insane: You gain the poisoned condition, and when you take an action in combat, you must make a DC 20 Constitution saving throw or lose the action (And waste the effect being used) and roll a d4, becoming paralyzed for 2 rounds on an odd roll and becoming stunned for 2 rounds on an even roll. This effect does not extend to your Bite attack or grappling, as long as you use the bonus action allowed after a grapple, and persists until you use the Bite attack three times in combat.

Darkvision. Due to your relationship with vampires, you have superior vision in dark and dim conditions. You can see in dim light within 120 feet of you as if it were bright light, and in darkness in the same radius as if it were dim light. You can’t discern color in darkness, only shades of gray.

Advanced Grappler. Your abilities enable you to grapple much better, to enable you to obtain the blood you need. You are considered proficient in the Athletics skill when you use it to grapple, and can double your proficiency bonus with it when your proficiency applies. You also have advantage when you attempt to grapple a living creature.

Keen Senses. You are proficient with the Perception skill.

Light Sleeper. You do not need as much sleep as other humanoids, due to your near undeath status. Magic and chemicals, including poison, cannot put you to sleep, and you only need to sleep 4 hours to gain the benefits of a long rest. You still need to perform only light activity for the rest of the long rest.

Undead Fortitude. You have resistance to poison damage, and you have advantage on saving throws against poison and magic. You also cannot be infected with disease.

Sunlight Sensitivity. You have disadvantage on attack rolls and Wisdom (Perception) checks when you, your target, or whatever you are trying to perceive is in direct sunlight.

Languages. You can speak, read, and write Common, Hemokatín, and two other languages of your choice. Hemokatín is a language full of jargon, to be used among Hemokatín as a sort of thieves’ cant.

Subrace. Hemokatín are slightly different from each other, depending on ancestry. Choose one of six ancestries for your character: Pureblood, Elfblood, Bloodline, Orcblood, Fiendblood, and Angelblood.

Subraces:

Pureblood Purebloods are Hemokatín descended from two Hemokatín parents.

Ability Score Increase. Your Charisma score increases by 3, rather than 2.

Musician. You are proficient with one musical instrument of your choice.

Charmer. You gain proficiency in Deception, Persuasion, or Intimidation.

Friends. You know the friends cantrip.

Misty Step. You know the misty step spell and can cast it once using this trait. You regain the ability to do so when you finish a short or long rest.

Language. You can read, speak, and write one additional language from these choices: Celestial, Elvish, Infernal, or Orc. Purebloods try to establish equality in the Hemokatín society, and thus learn new languages based on choice.

Elfblood Descended from a half-elven parent, Elfbloods are more flexible and slim than other Hemokatín.

Ability Score Increase. Your Dexterity increases by 1.

Herbalist. You are proficient in the Herbalism Kit.

Stealthy. You are proficient in the Stealth skill.

Thorn Whip. You know the thorn whip cantrip.

Fey Ancestry. You have advantage on saving throws against being charmed, and magic can’t age you.

Elvish. You can speak, read, and write Elvish.

Bloodline Bloodlines are Hemokatín with two human parents. These traits also serve as the traits for Halfbloods, Hemokatín who have a human parent and a Hemokatín parent.

Ability Score Increase. Any ability score of your choice, except Charisma, increases by 1.

Tool. You are proficient with any one tool of your choice.

Skill. You are proficient in any two skills of your choice.

Minor Illusion. You know the minor illusion cantrip.

Language. You can speak, read, and write one additional language from one of these choices: Celestial, Elvish, Infernal, or Orc. In addition to having an ear for languages, Bloodlines find they know a language they never learned perfectly. Half human Hemokatín follow their vampire parents and learn languages.

Orcblood Orcbloods have a half-orc as a parent. Orcbloods tend to be stronger, tougher, and larger than other Hemokatín.

Ability Score Increase. Your Strength score increases by 1.

Herbalist. You are proficient in the Herbalism Kit.

Menacing. You are proficient in the Intimidation skill.

True Strike. You know the true strike cantrip.

Relentless Endurance. When you are reduced to 0 hit points but not killed outright, you can drop to 1 hit point instead. You can’t use this feature again until you finish a long rest.

Fiendblood Descended from a tiefling parent, Fiendbloods are usually more intelligent than other Hemokatín.

Ability Score Increase. Your Intelligence score increases by 1.

Poisoner. You are proficient in the Poisoner’s Kit.

Deceiver. You are proficient in the Deception skill.

Thaumaturgy. You know the thaumaturgy cantrip.

Hellish Rebuke. You know the hellish rebuke spell and can cast it once as a 2nd-level spell using this trait. You regain the ability to do so when you finish a short or long rest. Infernal. You can speak, read, and write Infernal.

Angelblood One of your parents was an aasimar, which blesses you with natural wisdom and the ability to create magical light.

Ability Score Increase. Your Wisdom increases by 1.

Artisan. You are proficient with one Artisan’s Tools of your choice.

Religious Sage. You are proficient in the Religion skill.

Light. You know the light cantrip.

Radiant Soul. Your aasimar parent grants you resistance to radiant damage. Celestial. You can speak, read, and write Celestial.

Okay, is this race balanced? If it’s not, please tell me what I need to change.

How many times can a Lvl 17 Astral Self Monk attack, including bonus action

I believed this was straight forward, but I had a discussion with one of my players who didn’t see it the same way as I did.

According to the subclass features, at 3rd level:

[…] immediately after you use the Attack action with your astral arms on your turn, you can make one extra attack with your astral arms as a bonus action. The number of extra attacks increases when you reach certain levels in this class, increasing to two at 11th level and three at 17th level.

Pretty straight forward: at level 3, you can make a total of two attacks (1A and 1BA), at level 11 three attacks (1A and 2BA) and at level 17 four attacks (1A and 3BA)

Then at level 5 as every martial class you get Extra Attack:

Beginning at 5th level, you can attack twice, instead of once, whenever you take the Attack action on your turn.

Also, at level 17 you get the “Complete Astral Self” feature, which provides the following benefit among other:

Astral Barrage. Whenever you use the Extra Attack feature to attack twice, you can instead attack three times using your astral arms.

The difference of opinion lies on whether the Extra Attack feature, means you are taking the Attack action. As such my player suggests that the astral self monk scales as follows:

  • at 3rd level can make 2 attacks (1A and 1BA)
  • at 5th level can make 4 attacks (1A + 1BA + 1 extra attack + 1 astral self attacks (1 per attack action taken) as BA)
  • at 11th level can make 8 attacks (1A + 1 extra attack + 4 astral self attacks (2 per attack action taken) as BA)
  • at 17th level can make 12 attacks (1A + 2 extra attack + 9 astral self attacks (3 per attack action taken) as BA)

First of all, that seems absurd, even if it satisfies my Jojo fantasy. The way I interpret is:

  • at level 17th he could make 6 attacks (1A + 2 Extra attack + 3 astral self attacks as bonus action).

All of the instances above take into account the BA the monk would have needed to summon the astral self.

What are your thoughts? I feel that typing this out, solidified that the answer should be 6 attacks, but I would like to hear other people’s opinions on the matter.

Creating secure virtual machine that nobody can see its content including the host machine?

This problem is completely different from “running malware in a VM”! Suppose I want to have a virtual machine running some software with secret data. But I do not have complete control of the host machine, i.e. hackers can happily play on the host machine. Then, is it possible that my VM is still safe? For instance, without knowing the password, the hackers can never see what is inside the VM even though they get control of the host?

(P.S. Maybe by using some kind of full-disk encryption? But what about the memory… And when the VM is executing commands, the host can see that, cannot it?)

Thanks for any ideas!

If I send a plaintext e-mail using Gmail to somebody, including my PGP public key block, is that secure?

I’ve been trying to figure out “practical encryption” (AKA “PGP”) for many years. As far as I can tell, this is not fundamentally flawed:

  1. I know Joe’s e-mail address: cool_joe@gmail.com.
  2. I have a Gmail e-mail address: me_78@gmail.com.
  3. I have GPG installed on my PC.
  4. I send a new e-mail to Joe consisting of the “PGP PUBLIC KEY BLOCK” extracted from GPG.
  5. Joe received it and can now encrypt a text using that “PGP PUBLIC KEY BLOCK” of mine, reply to my e-mail, and I can then decrypt it and read his message. Inside this message, Joe has included his own such PGP public key block.
  6. I use Joe’s PGP public key block to reply to his message, and from this point on, we only send the actual messages (no key) encrypted with each other’s keys, which we have stored on our PCs.

Is there anything fundamentally wrong/insecure about this? Some concerns:

  1. By simply operating the e-mail service, Google knows my public key (but not Joe’s, since that is embedded inside the encrypted blob). This doesn’t actually matter, though, does it? They can’t do anything with my public key? The only thing it can be used for is to encrypt text one-way which only I can decrypt, because only I have the private key on my computer?
  2. If they decide to manipulate my initial e-mail message, changing the key I sent to Joe, then Joe’s reply will be unreadable by me, since it’s no longer encrypted using my public key, but Google’s intercepted key. That means Joe and I won’t be having any conversation beyond that initial e-mail from me and the first reply by him (which Google can read), but after that, nothing happens since I can’t read/decrypt his reply?

What benefit does Amazon get from including search results in product URLs? [closed]

https://www.amazon.com/JOYO-Wireless-Infinite-Sustainer-Handheld/dp/B07WZL5ZDK/ref=mp_s_a_1_6?keywords=heet+ebow&qid=1580579507&sr=8-6 Above is a link to a product. You can see in the URL what I looked up to find it. As an information conscious person, we know that this benefits Amazon enough to have bothered making the decision. What are the possible benefits, if they’re not already known? What are the risks?

How to create custom search form function including post “tags”

This is my HTML:

<input type="text" class="keyword" name="keyword" id="keyword" placeholder="Search video..."> <button id="search-keyword">Search</button> 

When I click the “Search” button start a script like this:

if($  ('.current').hasClass('search-select')){     action = 'my_create_posts_search'; //php function to do      ab = document.getElementsByClassName('keyword')[0].value; //get the value of input } 

Then an Ajax function starts:

 $  .ajax({     type: "POST",     url: ajax_params.ajax_url, //wordpress ajax     data: {      'action': action, //php function to do        'ab': ab, //value of input }, 

Then the action start and the code excecuted is this:

function my_create_posts_search($  name) {  //Pagination for posts  $  response = '';  $  paged = (int) (!is_null($  _POST['clicked_times'])) ? $  _POST['clicked_times'] : 0;   $  postsPerPage = 18;  $  postOffset = $  paged * $  postsPerPage;   $  args = array(     'posts_per_page'  => $  postsPerPage, //pagination     'offset'          => $  postOffset, //pagination     'category'        => 42, //post category     's'               => $  name, //value of input     'orderby'         => 'date',     'order'           => 'DESC',  );  ... other things... } 

Everything works perfectly expcet when I would like to search by Post Tags.

How can I implement this feature?

I hope my code will help you. Thanks!