Edit plugin function with a hook
Edit plugin function with a hook
Edit plugin function with a hook
For specifically post categories, you can use get_the_categories filter hook to remove certain found category (term). function filter_get_the_category( $categories, $post_id ) { // loop post categories foreach ($categories as $index => $category) { // check for certain category, you could also check for $term->slug or $term->term_id if ( ‘Featured’ === $category->name ) { // remove … Read more
Add link to php field text on wordpress form
Redirect after scrolling the page
Add query args if website open in mobile
Using Javascript to Set Redirect Page in Contact Form 7
Hide Slider on Post Type Page
By default Ubuntu doesn’t specify a ServerName in the Apache configuration, because it doesn’t know what the name of your server is. It tries a reverse lookup on your IP address, which returns nothing, so it just has to use the IP address as the ServerName. To fix it, either add a ServerName directive outside … Read more
You can do pretty much anything with apache log files with awk alone. Apache log files are basically whitespace separated, and you can pretend the quotes don’t exist, and access whatever information you are interested in by column number. The only time this breaks down is if you have the combined log format and are … Read more
Some people will say no public DNS records should ever disclose private IP addresses….with the thinking being that you are giving potential attackers a leg up on some information that might be required to exploit private systems. Personally, I think that obfuscation is a poor form of security, especially when we are talking about IP … Read more