Add Top-Level Menu that opens URL

I’ve experimented with various solutions or workarounds proposed elsewhere on this site – for instance here: Adding an Arbitrary Link to the Admin Menu? and this one here: http://www.techedg.com/2014/09/06/5575/a-simple-way-to-add-an-external-link-to-the-wordpress-admin-menu/ All of the solutions that I tested that worked included that behavior of adding an unwanted blank admin page. I’m not sure that there is not … Read more

Is there a plugin that allows a user of your site to get an email from you with an attachment?

you can use wp_mail( $to, $subject, $message, $headers, $attachments ); to send emails with attachments. So all you need is a simple form <form name=”email-att” id=”email-att” method=”POST” action=””> Enter your emial: <br /> <input type=”text” name=”email” id=”email”/><br /> <input type=”hidden” name=”action” value=”email-att”/><br /> <input type=”submit” name=”submit” value=”submit” id=”submit”/> </form> and to process it <?php if … Read more

How to list all active and specific shortcodes in wordpress

The conditional needs to test against strings which would be the name of the shortcode. If you’re looking for the [hello] shortcode the conditional would look like: echo ‘<pre>’; print_r( $shortcode_tags[‘hello’] ); echo ‘</pre>’; So if you use add_shortcode() the string you’ll be looking for is the first parameter: $tag.

Image Crop/Resize Function/Code Sinppet/Plugin to adjust/crop images during upload

-= 1 =- This is untested and might not work with your theme if it’s using a custom function to upload the actual images, but I would add the size you want using add_image_size( ‘profile_photo’, $width, $height, array( ‘center’, ‘middle’ ) ); to your functions.php file. Then you can retrieve the image using wp_get_attachment_image_src() passing … Read more

Can installing a plugin delete an entire theme directory?

Do WordPress plugins have permissions to delete entire directories? (it’s a Linux based host) WordPress plugins have permissions to do anything WordPress itself can do. It’s all just code. There’s no permissions model or sandboxing of any kind with plugins. Plugins and themes can do anything that PHP on your system can do. Is there … Read more