get_current_version_site(), 'currentVersionPage' => get_current_version_post( $post_id ), ) ); // phpcs:enable WordPress.Security.NonceVerification } // The call used for users requesting the current site version from non-admins. add_action( 'wp_ajax_nopriv_force_refresh_get_version', __NAMESPACE__ . '\\get_version' ); // The call used for users requesting the current site version from admins. add_action( 'wp_ajax_force_refresh_get_version', __NAMESPACE__ . '\\get_version' );