Wordpress - Force publish future event
How do I make an wordpress - force publish future event?
What is a wordpress - force publish future event? How do you make a wordpress - force publish future event? This script and codes were developed by Cory Schadt on 19 October 2022, Wednesday.
Wordpress - Force publish future event - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Wordpress - Force publish future event</title>
</head>
<body> function onetarek_prevent_future_type( $post_data ) {
if ( $post_data['post_status'] == 'future' && $post_data['post_type'] == 'YOURPOSTYPEHERE' )#Here I am checking post_type='post' , you may use different post type and if you want it for all post type then remove "&& $post_data['post_type'] == 'post'"
{
$post_data['post_status'] = 'publish';
}
return $post_data;
}
add_filter('wp_insert_post_data', 'onetarek_prevent_future_type');
remove_action('future_post', '_future_post_hook');
</body>
</html>
Developer | Cory Schadt |
Username | coryschadt |
Uploaded | October 19, 2022 |
Rating | 3 |
Size | 1,403 Kb |
Views | 20,240 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Jquery cycle2 youtube | 1,750 Kb |
FLEXY | 1,510 Kb |
Chair Animation | 229,479 Kb |
Keyframe Testing | 2,957 Kb |
FlexBox Mixin | 1,844 Kb |
MacBook Pro | 3,136 Kb |
Menu | 2,080 Kb |
Diamond | 3,881 Kb |
Vertical Slick Slider | 3,545 Kb |
Wordpress - Force publish future event | 1,403 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Search field | Jamesbarnett | 2,100 Kb |
Electric worm | Jeffibacache | 2,377 Kb |
Example SVGZ Data URI | Joeyhoer | 2,981 Kb |
A Pen by Malith Hettiarachchi | MalZiiirA | 5,531 Kb |
DFF Website | Hawcubite | 10,123 Kb |
CSS Donut Charts | Seanstopnik | 2,908 Kb |
Navier Stoke Fluid Simulation | Esimov | 8,584 Kb |
Blockquote design | Sjmcpherson | 1,863 Kb |
A Pen by Rob Levin | Roblevin | 2,787 Kb |
Wave Lines | Mikehobizal | 4,023 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!