functions
Adding a second email address to a completed order in WooCommerce
Before I ask this question, I know there is a (legitimate) hesitation to answer questions here about Woo products since they have their own support and their users should be encouraged to use that. I am a paying Woo user but couldn’t solve this with their paid support, and my question is about overriding classes … Read more
Apply custom role capabilities to administrator (without plugin)
I have a custom role that allows access to only a sigle custom post type. This is all well and good, but now it is only showing up for this role, not for admin and super admin. I’m having a hard time getting it to show up in the admin dashboard.
remove links from images using functions.php
I am looking for a way to remove the attachment link from images in the post content.
Solution to render Shortcodes in Admin Editor
I have asked this question about a year ago and I am hoping there is some type of simple solution which will allow me achieve my objective. So here it goes:
Why isn’t is_page working when I put it in the functions.php file?
I have page called “Apple”, the page’s ID id 2533.
Upload Multiple Files With media_handle_upload
I have a WordPress form plugin and I use media_handle_upload to upload the files and get there ids directly and attached its ids to the post as a meta date, I used the following to did that:
Is it ok to use a function to output the text domain name in a wordpress theme
I am working on a theme and I want to make it available for translating. I have not been including a text domain on translated text because I don’t know what the text domain is going to be yet. I figured, until I can come up with a name for my theme I should just use a function to output my text domain name instead of hard coding it on translated text.
Delete expired posts after a number of days after they expired
I use the below code to delete custom posts with status ‘expired’ (thanks to Jamie Keefer). Posts are set as ‘expired’ by a 3rd party plugin. Users have only a frontend access to their posts (adverts).
Adding fields to the “Add New User” screen in the dashboard
I’d like to add the field “Company Name” to the add new user page in the admin panel. I’ve done quite a bit of searching and have been unable to find details on how to do this. I can easily add info to the profile page and registration with..