jQuery(function($) { $(document).on(‘click’, ‘.favorite-toggle’, function(e) { e.preventDefault(); const btn = $(this); const post_id = btn.data(‘post-id’); const isFavorited = btn.attr(‘data-favorited’) === ‘1’; $.post(”, { action: ‘toggle_favorite’, post_id: post_id }, function(response) { if (response.success) { btn.text(isFavorited ? ‘♡’ : ‘❤️’).attr(‘data-favorited’, isFavorited ?…Continue reading
Property ListingsContinue reading
add_filter( ‘xmlrpc_enabled’, ‘__return_false’ );Continue reading
add_action( ‘template_redirect’, function () { global $post; if ( ! is_attachment() || ! isset( $post->post_parent ) || ! is_numeric( $post->post_parent ) ) { return; } // Does the attachment have a parent post? // If the post is trashed, fallback…Continue reading
// Prevent duplicate execution if (defined(‘LPS_SCHOOL_SEARCH_LOADED’)) { return; } define(‘LPS_SCHOOL_SEARCH_LOADED’, true); // Output HTML and JavaScript ?> Nearby Schools Hide School Search Data from Florida Department of Education Pre-K Kindergarten Elementary Middle/Jr. High Senior High Combination Adult Other Pre-K Show…Continue reading
add_action(‘wp_footer’, function () { ?>Continue reading
add_action(‘rest_api_init’, function() { register_rest_route(‘schools/v1’, ‘/schools’, [ ‘methods’ => WP_REST_Server::READABLE, ‘callback’ => ‘fetch_schools’, ‘permission_callback’ => ‘__return_true’, ‘args’ => [ ‘lat’ => [ ‘required’ => true, ‘validate_callback’ => function($param) { return is_numeric($param) && $param >= -90 && $param function($param) { return floatval($param);…Continue reading
// 1. Add “Internal Name” column after the Order Number column in HPOS Orders Table add_filter(‘woocommerce_shop_order_list_table_columns’, function($columns) { $new_columns = []; foreach ($columns as $key => $label) { $new_columns[$key] = $label; if ($key === ‘order_number’) { // Insert custom column…Continue reading
// 1. Add “Internal Name” column after the Order Number column in HPOS Orders Table add_filter(‘woocommerce_shop_order_list_table_columns’, function($columns) { $new_columns = []; foreach ($columns as $key => $label) { $new_columns[$key] = $label; if ($key === ‘order_number’) { // Insert custom column…Continue reading