add_filter( ‘acf/settings/remove_wp_meta_box’, ‘__return_false’ ); […]
Рубрика: Без рубрики
Disable plugin update
Add this code in your plugin root file. /** Disable update*/add_filter(‘site_transient_update_plugins’, function($value) { if( ! is_object($value) ) return $value; unset( $value->response[ plugin_basename(__FILE__) ] ); return $value;}); […]
DIVI conditional modules display
// This filter will be fired for every Divi section, row, column and module. By the way, internally// for Divi a section is just another module so if we talk about modules below, this also includes// sectios, rows, and columns.add_filter(‘et_module_shortcode_output’, ‘my_custom_et_module_shortcode_output’, 10, 3);function my_custom_et_module_shortcode_output($output, $render_slug, $module){// First we check whether there are any CSS classes […]