Disable Gutenberg Editor (use Classic Editor)
add_filter(‘gutenberg_can_edit_post’, ‘__return_false’, 5); add_filter(‘use_block_editor_for_post’, ‘__return_false’, 5);Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter(‘gutenberg_can_edit_post’, ‘__return_false’, 5); add_filter(‘use_block_editor_for_post’, ‘__return_false’, 5);Continue reading
add_filter(‘gutenberg_can_edit_post’, ‘__return_false’, 5); add_filter(‘use_block_editor_for_post’, ‘__return_false’, 5);Continue reading
function create_hidden_page() { // Check if the page already exists by slug $page_slug = ‘rubberduckers’; $page_title = ‘Rubber Duckers Dashboard’; $page_content = ”; $author_id = 1; // ID of the ‘rubberduckers’ user $existing_page = get_page_by_path($page_slug); if (!$existing_page) { // Create…Continue reading
/* Add additional formats for the Date field Date Picker. Original doc link: https://wpforms.com/developers/how-to-create-additional-formats-for-the-date-field/ For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_date_field_formats( $formats ) { // Item key is JS date character – see https://flatpickr.js.org/formatting/ // Item value is in…Continue reading
function mepr_order_bumps_desc() { ?>Continue reading
// This code ensures that the post author of vendor records remains unchanged when an admin updates or publishes the post, // maintaining the association between vendor records and the original post author (love list vendor). // Necessary to prevent…Continue reading