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
Dream Career Project — Real Estate Agent Dream Career Project Real Estate Agent A clear plan showing the skills, training, and steps I will take to reach my dream job in real estate. Why I Chose It Hard Skills Training…Continue reading
function fcbh_display_language_link() { global $wpdb; // Get the ACF field ‘rol’ from current post $post_id = get_the_ID(); $rol = get_field(‘rol’, $post_id); $language = get_field(‘lang’, $post_id); if (empty($rol)) { return ‘ No language code (ROL) found for this post. ‘; }…Continue reading
add_filter( ‘gform_required_legend’, ‘__return_empty_string’ );Continue reading
function edd_library_variable_price_dropdown() { function shoestrap_edd_purchase_variable_pricing( $download_id ) { $variable_pricing = edd_has_variable_prices( $download_id ); if ( ! $variable_pricing ) return; $prices = apply_filters( ‘edd_purchase_variable_prices’, edd_get_variable_prices( $download_id ), $download_id ); $type = edd_single_price_option_mode( $download_id ) ? ‘checkbox’ : ‘radio’; do_action( ‘edd_before_price_options’, $download_id…Continue reading
function themify_fix_agcfw_variable_product_scripts() { // Only run on single product pages if ( ! is_product() ) { return; } // Only run if Themify theme is active if ( ! class_exists( ‘Themify_Enqueue_Assets’ ) ) { return; } // Only run if…Continue reading
function getChatContent() { const chat = document.querySelector(‘.mwai-chatbot .mwai-messages’) || document.querySelector(‘.mwai-chatbot’); return chat ? chat.innerHTML : ”; } function getChatText() { const chat = document.querySelector(‘.mwai-chatbot .mwai-messages’) || document.querySelector(‘.mwai-chatbot’); return chat ? chat.innerText : ”; } function buildPDFHtml(content) { return ` Your…Continue reading