58 F
Los Angeles
Saturday, November 23, 2024

Trump Lawyer Resigns One Day Before Trial To Begin

Joseph Tacopina has filed with the courts that he will not represent Donald J. Trump. The E. Jean Carroll civil case is schedule to begin Tuesday January 16,...

Judge Lewis A. Kaplan Issues Order RE Postponement

On May 9, 2023, a jury found Donald J. Trump liable for sexual assault and defamation. The jury awarded Ms. Carroll $5 million in damages. Seven months ago,...

ASUS Announces 2023 Vivobook Classic Series

On April 7, 2023, ASUS introduced five new models in the 2023 Vivobook Classic series of laptops. The top laptops in the series use the 13th Gen Intel® Core™...
WebdesignWordPressWordPress Plugin Activation and Deactivation Code Snippet

WordPress Plugin Activation and Deactivation Code Snippet

Two individuals were having trouble with their theme after activating the XenWord plugin. These were coincidences and the themes needed updating. However, while looking at my own code under phpstorm, a fairly big bug was found.

After reading different ways to handle activation, I’ll have to tinker with different ways and see if the bug can be fixed without a complete rewrite. 

Currently the activation method calls another file which sets up the database. It may be best to remove the activation from the class but I’ll try different methods tomorrow.

I ran across the following code snippet while reading about activation and deactivation of WordPress plugins:

[wpgist id=”857430″]
LPH
Layne Heinyhttp://www.layneheiny.com
LPH is a high school physics teacher interested in the Apple iPad and iPhone, Microsoft Surface, Tablet PCs, and other mobile devices. He resides with one large dog who begs for pizza, hamburgers, French fries, and anything else on the dinner table.

Latest news

Related news