Woocommerce get_term_by() in transition_post_status hook doesn’t works

Im having this code

$  concours_termine_cat = get_term_by('slug' , 'concours-termine' , 'product_cat'); 

get_term_by is returning false, after debugging the get_term_by function

taxonomy_exists( 'product_cat');  

is returning false.

So I checked in taxonomy_exists function and looks like into $ wp_taxonomies product_cat doesn’t exist at this time of execution.

I call this hook like this add_action('transition_post_status' , 'vince_function_post_update' , 10 , 3);

get_the_excerpt doesn’t work with default items but works with my customs post types

the excerpt function not work in my custom post template using WordPress default posts in the query loop, but they work fine with custom post type.

I enabled the display of excerpt by checking the "excerpt" option in the post options fields.

I also added "add_post_type_support(‘page’ ‘excerpt’)" in my function.php file but it doesn’t working.

I suspect a problem coming from the database because the excerpts are displayed when I test the website locally with Xampp.

Here is a snippet of the code used in my page template:

<div class="container">                      <div class="row">                         <div class="col-lg-9 col-mg-9 mp-blog" style="padding-right: 24px;">                                                 <div class="row">                                  <?php                                 $  paged = (get_query_var('paged')) ? get_query_var('paged') : 1;                                  $  args = array(                                   'post_type'=>'post', // Your post type name                                   'posts_per_page' => 6,                                   'cat' => 26,                                   'paged' => $  paged,                                 );                                                                  $  loop = new WP_Query( $  args );                         if ( $  loop->have_posts() ) {                             while ( $  loop->have_posts() ) : $  loop->the_post();?>                        <?php the_excerpt();?>                        <?php endwhile;                              $  total_pages = $  loop->max_num_pages;      if ($  total_pages > 1){          $  current_page = max(1, get_query_var('paged'));     ?>     <div class="custom_pagination">        <?php         echo paginate_links(array(             'base' => get_pagenum_link(1) . '%_%',             'format' => '/page/%#%',             'current' => $  current_page,             'total' => $  total_pages,             'prev_text'    => __('« précédent'),             'next_text'    => __('suivant »'),         ));?>     </div>     <?php }     } wp_reset_postdata();?>                     </div>                 </div><!-------------- end of col-8 ------------------>               <div class="col-lg-3 col-mg-3" style="padding: 0;">                   <div id="tching" class="blog_right_sidebar" style="padding: 0 15px;">                       <?php get_sidebar(); ?>                   </div>               </div>             </div>          </div> 

How Microsoft Junk Mail filter really works based in body content links?

I’m not here to discuss about DKIM, DMARC, SPF, or other of the hundreds of variables in the difficult path to get your email into the Inbox instead of Junk folder.

I’m here just about the links in the body content of the email, and I’ll tell you why.

I have been sending dozens of emails from a Google Apps mail account, to a hotmail.com account.

It was just TEXT, this text:

Hi there !!! Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean sagittis imperdiet eros sit amet placerat. Aenean blandit efficitur eros non mattis. Integer vehicula nunc eget est vulputate, sit amet consequat ipsum feugiat. Aliquam massa odio, dignissim vel luctus in, aliquam sit amet est. Aliquam erat volutpat.   Phasellus egestas, dolor in tempor ullamcorper, tortor lectus auctor neque, vel suscipit diam tellus tempus tortor. Nam vulputate euismod ligula, ac tempor arcu tempus at. Donec ultricies velit sed justo mollis accumsan at nec nisi. Vestibulum a diam ac magna varius consectetur. Donec in justo vitae ex lacinia imperdiet. Nullam gravida urna leo. Etiam congue, dui a commodo feugiat, risus tellus tempor neque, eget vestibulum erat ex non augue.  If you want you can visit: https://xxxxxxxxx.xxxx  Donec pulvinar rutrum commodo. Cras porta facilisis bibendum. Pellentesque pretium est sem, ut varius diam suscipit quis. Aenean et eros auctor, rhoncus mi in, dignissim odio. Suspendisse suscipit enim lorem, quis interdum massa consectetur in. Integer suscipit eros sodales hendrerit tempor. Etiam finibus semper tellus, ac suscipit orci mollis eu. Pellentesque vehicula auctor ultrices. In hendrerit dolor quis lorem laoreet, vel convallis magna laoreet. Sed pulvinar non magna maximus dapibus.  Nullam semper lacus eget hendrerit dapibus. Morbi eget urna eleifend, consectetur elit ac, fermentum orci. Mauris et urna est. Mauris ac lacinia lectus. Vestibulum scelerisque tempor nibh ac eleifend. Nulla faucibus tellus blandit quam suscipit ultricies. Suspendisse finibus risus id lectus lobortis mattis.  Regards 

The only change was the ONLY link in all email content. Everything was exact the same. The content, the subject, the sender … I just changed that link.

What I saw is with some links, the email goes to Inbox folder With other links, it goes to the Junk folder.

Just that ! Just because of the domain name of the only link in the body content.

Why is that?

I try to figure out things like:

  • domain age
  • domain – ip and reverse
  • domain ip in ip’s blacklist
  • domain in domain’s blacklist
  • domain has https activated
  • and some other variables

but I can’t get any "rule" that satisfies why sometimes "that link" is "good" or not to Microsoft Junk Email Filter.

Does anyone know any clue in order to check the list of "good" domains and "bad" domains I have so we can all learn about this? 😉

FindMaximum works on desktop but not on laptop

I have a simple code to find maximum as follows.

myfunc = {-1 + 2/(1 + d), 1/2 (-1 + 1/d), 1 - d, 1 + 1/(-2 + d),     1 - d, 1 - d, -1 + 1/d, -1 + 1/d, 1/(1 + d), 1/(2 d), 1/d, 1/d, d/(    1 - d)}; FindMaximum[{##, 0 <= d <= 1}, d] & /@ myfunc 

It works well on my desktop and the result is:

{{1., {d -> 0.}}, {\[Infinity], {d -> 0.}}, {1., {d ->      0.}}, {0.5, {d -> 0.}}, {1., {d -> 0.}}, {1., {d ->      0.}}, {\[Infinity], {d -> 0.}}, {\[Infinity], {d ->      0.}}, {1., {d -> 0.}}, {\[Infinity], {d ->      0.}}, {\[Infinity], {d -> 0.}}, {\[Infinity], {d ->      0.}}, {\[Infinity], {d -> 1.}}} 

However, I got error with $ Failed when I ran it on my laptop.

{{1., {d -> 3.54538*10^-8}}, {-$  Failed, {d -> 0.}}, {1., {d ->      0.}}, {0.5, {d -> 0.}}, {1., {d -> 0.}}, {1., {d ->      0.}}, {-$  Failed, {d -> 0.}}, {-$  Failed, {d -> 0.}}, {1., {d ->      0.}}, {\[Infinity], {d -> Indeterminate}}, {\[Infinity], {d ->      0.}}, {\[Infinity], {d -> 0.}}, {\[Infinity], {d ->      Indeterminate}}} 

Why does this happen? How can I solve this?

Does Ranger Monster Hunter’s Slayer’s Counter works on saves to maintain concentration?

From the Sage Advice Compendium:

Does a Monster Slayer ranger’s Supernatural Defense feature apply if a creature damages the ranger, thus causing the ranger to make a Constitution saving throw to maintain concentration on a spell? Yes.

Since the Supernatural defense works for concentration, does the Slayer Counters works as well?

How exactly Power Attack and critical hit works together?

I tried to follow the rules and check FAQs but now I need a help:

I got a 13° liv THF (two-hand fighter) and 6° liv Aegis (BAB=19) and 5° Mithic tier, with Power Attack and Mithic Power Attack (but not obviously Greater Power Attack) and 34 Strenght+Brawn (+12 mod), here are damage stats as I supposed:

    12x1.5= 18(THW)      +3(Weapon Training)      +6(Weapon Specialization+2, Greater+2, Mithic+2)      +4(Magic Weapon mod)      +3(Improved Damage from Astral skin customization)      +1(Psionic Damage from Astral skin customization)      +1(Psionic Weapon feat) and      +24(Power Attack,Mithic) = 60 for first attack and 66 for iterative (due to Backswing) 

Now the question is: Whats happens with a critical hit on each point? – I’ve found many question and I read not enough answers about it so I fall in chaos each critical hit (no more a great pleasure but a trouble)-.

and then another question regarding Power Attack and Critical hit is:

Whats happens at 15° liv (for THF archetype) and Power Attack change to Power Attack, Greater ?

Thanks

Calling javascript in javascript works for some but not all scripts [migrated]

I have the following code in a script.js file that I call in my html file:

function loadScript(url) {         var head = document.getElementsByTagName('head')[0];     var script = document.createElement('script');     script.type = 'text/javascript';     script.src = url;     script.async = false;     head.appendChild(script); }  loadScript('https://polyfill.io/v3/polyfill.min.js?features=es6') loadScript('https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js') loadScript('https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/highlight.min.js')  hljs.initHighlightingOnLoad(); 

I use this code because I want to call only one .js file in my html instead of multiple .js files.

The first two scripts that I load to call MathJax work fine. The third script to call highlight.js however does not run.

When I paste all the code from the file ‘highlight.min.js’ into the my script.js file, the javascript does run normally when I open the html.

I don’t understand why loading the ‘highlight.min.js’ file with the loadScript() does not work, or what I can do to get it to work. Any help is appreciated.

is the requirement of being in a lightly obscured area to gain the benefit of the Nature’s Mantle works in a heavily obscured area?

I want to make sure I’m not creating a problem by allowing heavily obscured areas to meet the requirement of being in a lightly obscured area for the Nature’s Mantle benefit of hiding as a bonus action. Since it is a more obscured area I intended to allow it but I’m not sure if I should since it is not explicitly written.

thanks again.

What Works Inspired Paranoia?

Paranoia is obviously descended from dystopian works such as 1984 and Logan’s Run with black comedy that I have sometimes heard is inspired by Monty Python’s Flying Circus. For a long time I had thought that Paranoia was directly inspired by the film Brazil being that it mixed a dystopian future with black humor, but I realized recently that Paranoia was first released in 1984 with Brazil being released the following year, so it couldn’t have been an inspiration.

Which works inspired which aspects of the Paranoia setting? I’d especially like to see citations from the creators, if they exist.

I realize that Paranoia has been around for over 25 years. If certain works have influenced different editions over time, I’d like to know that too.

GSA works so slow

Hi guys,
I have some own site list. I gathered it with gsa, then delete bad domains and now i have about 1200 domains. I want to use them with gsa. I clicked import target url from file and chose my list. But gsa dont use this list and dont work. What can i do? Please help me. I try to built good backlings to my tier 2