%2$s

', esc_html($class), ($message)); // WPCS: XSS ok, sanitization ok. } }; add_action('admin_notices', function () use ($apartment_notinstalled_admin_notice__error) { $apartment_notinstalled_admin_notice__error(); }); $apartment_notinstalled_admin_notice__error_dismissed = function () use ($key_diss) { $user_id = get_current_user_id(); if (isset($_GET[$key_diss])) add_user_meta($user_id, $key_diss, 'true', true); }; add_action('admin_init', function () use ($apartment_notinstalled_admin_notice__error_dismissed) { $apartment_notinstalled_admin_notice__error_dismissed(); }); return true; } /** * Admin styles. * */ function apartment_custom_admin_styles() { echo ''; } add_action('admin_head', 'apartment_custom_admin_styles'); if(!function_exists('apartment_install_ocdi_images_sizes')) { function apartment_install_ocdi_images_sizes($sizes) { if(get_option('apartment_install_ocdi_images_sizes_enable') == 1) { unset($sizes['thumb']); unset($sizes['thumbnail']); unset($sizes['medium']); unset($sizes['large']); unset($sizes['medium_large']); unset($sizes['big_image_size_threshold']); unset($sizes['post-thumbnail']); unset($sizes['1536x1536']); unset($sizes['nexproperty-footer-thumbnail']); unset($sizes['nexproperty-slider-thumbnail']); unset($sizes['nexproperty-post-thumbnail']); unset($sizes['woocommerce_thumbnail']); unset($sizes['woocommerce_single']); unset($sizes['woocommerce_gallery_thumbnail']); unset($sizes['shop_single']); unset($sizes['shop_thumbnail']); } return $sizes; } add_filter('intermediate_image_sizes_advanced', 'apartment_install_ocdi_images_sizes'); } add_action( 'init', function() { register_block_pattern( 'my-plugin/hello-world', array( 'title' => __( 'Hello World', 'apartment' ), 'content' => "\n

Hello World

\n", ) ); }); add_action( 'init', function() { register_block_style( 'core/image', array( 'name' => 'bottom-left', 'label' => __( 'Bottom Left', 'apartment' ), ) ); }); add_action('after_setup_theme', function(){ if(get_option('apartment_first_theme_activation') === false){ set_theme_mod( 'footer_powered_by_link', "//wpdirectorykit.com/themes/apartment.html" ); set_theme_mod( 'footer_powered_by', esc_html__('Single Property WP Theme','apartment') ); add_option('apartment_first_theme_activation', true, '', false); } }); ?>