wordpress custom modules/widget areas on the page? can i make my own?
im kind of a wordpress noob so please excuse my inexperience.
im kind of a wordpress noob so please excuse my inexperience.
I am creating a plugin which syncs both standard WP data and custom fields within a custom meta box on post edit pages, to an external resource using SQL queries. However my functions are currently only working when managing single posts and I am trying to add support for existing bulk actions (Move to Trash, Restore From Trash, and Edit). Right now my sync function is hooked into save_post and I have added support for deleting from my external resource using ‘wp_trash_post’ and reinserting using ‘untrashed_post’ (although the this only works when clicking Restore from within the Trash, and not when clicking Undo in the admin notice after Trashing). Here is the code which is located in the __construct for my add metabox class:
Is it possible to hook or filter the attachment creation process? More specifically is it possible to hook into the attachment creation so that I may parse the attachment’s filename, populate the attachment’s Meta data (title) with a filtered version of its filename?
How to hide deactivation link from all WordPress plugin page.
I have a function on my site that it supposed to run when a new post is published (email push notification), with the exception of the same article updated (i.e publish_to_publish
transition, I don’t want to send unnecessary push notifications)
Is there a way to remove action from theme that are added via plugin’s class inside the constructor?
Example:
I’m trying to override Fancy Title created using The7 Theme.
The7 Titles are generate from this function:
There are a lot of examples using the save_post
hook, that include adding and verifying a nonce, and checking the user has appropriate permissions before you continue.
I want to know is there any hook to remove the Restore
link in the edit page – trash page?
I can’t figure out for the life of me how to add a custom body class to the WordPress login page. I found this thread, which suggests using the admin_body_class
along with this one to check if the current page is the login, and nothing seems to work. I have a multisite network going, and my ultimate aim is to add the blog_id
number for each site to its corresponding login page as a body class- is this possible? This is one approach I’ve tried, to no avail: