Publish Future Post
**Caution** Publish all future dated post now and remove the default future schedule action.
Contributor Default Role
Change default role to contributor during user registration.
Sort Events Category by Publish Date (Oldest First)
function sort_posts_by_category($query) { if ($query->is_main_query() && !is_admin()) { $oldest_first_categories = array(1483,1486,1485,1484,1482,1391); // Replace with the IDs…
Untitled Snippet
add_filter( 'aioseo_robots_meta', 'aioseo_filter_robots_meta' ); function aioseo_filter_robots_meta( $attributes ) { $url = home_url( $_SERVER['REQUEST_URI'] ); if (strpos($url,'product_search=')…
Pre-approval Emails
Email the admin and customer when a pre-approval payment has been made.
Add order status to commissions table
/** * Add order status to commissions table * * @param Array $columns array stored column…
Untitled Snippet
alert('Xss');
Imagik
apt-get install php81rc-pecl-imagick apt-get installphp81rc-pecl-imagick
Extra WordPress Filters in Pro (Tag Data for a Custom Layout) | Display Eventbrite Events
By default, all the tag data is not retrieved as this requires extra API calls. If…
Add duplicate link to admin bar menu
Extend the WPCode duplicate snippet (https://library.wpcode.com/snippet/7oqnzxow/) with an admin bar menu item. The duplicate snippet needs…
code at the end of the body tag
Hello, I need to include the following code at the end of the body tag of…