Title: Kevin Shenk's Replies | WordPress.org

---

# Kevin Shenk

  [  ](https://wordpress.org/support/users/batonac/)

 *   [Profile](https://wordpress.org/support/users/batonac/)
 *   [Topics Started](https://wordpress.org/support/users/batonac/topics/)
 *   [Replies Created](https://wordpress.org/support/users/batonac/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/batonac/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/batonac/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/batonac/engagements/)
 *   [Favorites](https://wordpress.org/support/users/batonac/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/users/batonac/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/batonac/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Offload, AI & Optimize with Cloudflare Images] RankMath update compatibility issue](https://wordpress.org/support/topic/rankmath-update-compatibility-issue/)
 *  Thread Starter [Kevin Shenk](https://wordpress.org/support/users/batonac/)
 * (@batonac)
 * [6 months ago](https://wordpress.org/support/topic/rankmath-update-compatibility-issue/#post-18761424)
 * That fixed it. Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Super Page Cache – Cloudflare Cache, Page Speed & Core Web Vitals] Correct Token Permissions](https://wordpress.org/support/topic/correct-token-permissions/)
 *  [Kevin Shenk](https://wordpress.org/support/users/batonac/)
 * (@batonac)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/correct-token-permissions/#post-18093687)
 * Feature request: It would seem much more ideal if the plugin had explicit detection
   and reporting on the frontend whenever relevant token permissions have not been
   granted correctly, rather than forcing users to sleuth through log files.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[ACF to Custom Database Tables] Can I move Custom Post data to a Custom Table?](https://wordpress.org/support/topic/can-i-move-custom-post-data-to-a-custom-table/)
 *  [Kevin Shenk](https://wordpress.org/support/users/batonac/)
 * (@batonac)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/can-i-move-custom-post-data-to-a-custom-table/#post-17315585)
 * You can use a script like the following in [WP Console](https://wordpress.org/plugins/wp-console/):
 *     ```wp-block-code
       <?php
   
       $args = [
           'post_type' => 'dealers', // Replace with your post type
           'posts_per_page' => -1,
           'fields' => 'ids',
       ];
   
       $posts = get_posts($args);
   
       // replace with your ACF field keys and names
       $fields_to_update = [
           'field_658f34acfa8b1' => 'dealer_type',
           'field_63e2523c7b2a8' => 'netsuite_id',
           'field_63bc663415a82' => 'phone',
           'field_63e16cc724134' => 'fax',
           'field_63bc664f15a83' => 'website',
           'field_63e252187b2a7' => 'website_domain',
           'field_63bc67275b5ea' => 'open_hours',
           'field_63bc7f1f02a3b' => 'location',
       ];
   
       $acf_cpt = new Acf_ct_register_hooks();
   
       $_POST['_acf_changed'] = "1";
   
       foreach ($posts as $post_id) {
           $_POST['acf'] = [];
   
           foreach ($fields_to_update as $field_key => $field_name) {
               $field_value = get_field($field_name, $post_id);
               if ($field_value !== false) {
                   $_POST['acf'][$field_key] = $field_value;
               }
           }
   
           // Call the function to handle saving the post
           $acf_cpt->acf_ct_handle_save_post($post_id);
   
           // Output for confirmation
           echo "Processed post ID: {$post_id}\n";
       }
       ```
   
 * You can find the field keys for your scenario by enabling ‘key’ under ‘Screen
   elements’ in the field group edit screen.
    -  This reply was modified 2 years, 5 months ago by [Kevin Shenk](https://wordpress.org/support/users/batonac/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[ACF to Custom Database Tables] Wpallimport compatibility](https://wordpress.org/support/topic/wpallimport-compatibility-4/)
 *  [Kevin Shenk](https://wordpress.org/support/users/batonac/)
 * (@batonac)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/wpallimport-compatibility-4/#post-17315569)
 * You can use a custom action hook like the following. This example is for a specific
   post type and field group, which helps to keep it performant. Obviously, you 
   would need to adapt it to your use-case:
 *     ```wp-block-code
       <?php
   
       add_action('save_post', 'update_custom_dealers_table', 10, 3);
       function update_custom_dealers_table($post_id, $post, $update)
       {
           // If this isn't a 'dealer' post, don't update it.
           if ($post->post_type != 'dealers') {
               return;
           }
           // update custom fields
           $fields_to_update = [
               'field_658f34acfa8b1' => 'dealer_type',
               'field_63e2523c7b2a8' => 'netsuite_id',
               'field_63bc663415a82' => 'phone',
               'field_63e16cc724134' => 'fax',
               'field_63bc664f15a83' => 'website',
               'field_63e252187b2a7' => 'website_domain',
               'field_63bc67275b5ea' => 'open_hours',
               'field_63bc7f1f02a3b' => 'location',
           ];
   
           $acf_cpt = new Acf_ct_register_hooks();
   
           $_POST['_acf_changed'] = "1";
           $_POST['acf'] = [];
   
           foreach ($fields_to_update as $field_key => $field_name) {
               $field_value = get_metadata_raw('post', $post_id, $field_name, true);
               if ($field_value !== false) {
                   if (ctype_digit($field_value)) {
                       $field_value = (int) $field_value;
                   }
                   $_POST['acf'][$field_key] = $field_value;
               }
           }
   
           // Call the function to handle saving the post
           $acf_cpt->acf_ct_handle_save_post($post_id);
       }
       ```
   
 * You can find the field keys for your scenario by enabling ‘key’ under ‘Screen
   elements’ in the field group edit screen.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[NS Cloner - Site Copier] Update to WordPress 6.2: fatal error at “get_batches()” signature](https://wordpress.org/support/topic/update-to-wordpress-6-2-fatal-error-at-get_batches-signature/)
 *  [Kevin Shenk](https://wordpress.org/support/users/batonac/)
 * (@batonac)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/update-to-wordpress-6-2-fatal-error-at-get_batches-signature/#post-16872155)
 * I had the same issue and can confirm that the above fix works 👏
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ajax Press - Easily Enable Fast Ajax Navigation] Feature Request: Exclusions](https://wordpress.org/support/topic/feature-request-exclusions/)
 *  Thread Starter [Kevin Shenk](https://wordpress.org/support/users/batonac/)
 * (@batonac)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/feature-request-exclusions/#post-16466649)
 * Yeah, I am using FSE, with the Cwicly toolkit. Because I have full control of
   the template in FSE, I created an identical block ID in every template that I
   use for swapping out the page contents. That part worked, but some other quirks
   remain.
 * I’m glad to have clarity on this, though. I was really hopeful about AP, and 
   hope there’s some kind of resolution to this over-arching objective in the future.
 * Best!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ajax Press - Easily Enable Fast Ajax Navigation] Feature Request: Exclusions](https://wordpress.org/support/topic/feature-request-exclusions/)
 *  Thread Starter [Kevin Shenk](https://wordpress.org/support/users/batonac/)
 * (@batonac)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/feature-request-exclusions/#post-16466584)
 * Well, [here’s the website](https://www.nordenmfg.com/), but I’ll need to spin
   up a staging site so I can enable this for development purposes. I just turned
   it on for a minute or so to verify that the issue still exists. If you’re willing
   to take a look at a staging site, I’ll get that set up.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ajax Press - Easily Enable Fast Ajax Navigation] Feature Request: Exclusions](https://wordpress.org/support/topic/feature-request-exclusions/)
 *  Thread Starter [Kevin Shenk](https://wordpress.org/support/users/batonac/)
 * (@batonac)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/feature-request-exclusions/#post-16466554)
 * Here’s what I entered:
 *     ```wp-block-code
       a:not(.cc-lightbox)
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ajax Press - Easily Enable Fast Ajax Navigation] Feature Request: Exclusions](https://wordpress.org/support/topic/feature-request-exclusions/)
 *  Thread Starter [Kevin Shenk](https://wordpress.org/support/users/batonac/)
 * (@batonac)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/feature-request-exclusions/#post-16450033)
 * Woot! I’ll give this a try and report back!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Docket Cache - Object Cache Accelerator] PHP FPM Segfault with Object Cache Enabled](https://wordpress.org/support/topic/php-fpm-segfault-with-object-cache-enabled/)
 *  Thread Starter [Kevin Shenk](https://wordpress.org/support/users/batonac/)
 * (@batonac)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php-fpm-segfault-with-object-cache-enabled/#post-16325871)
 * In this scenario, I was installing docket cache on a “placeholder” site before
   migrating other sites into/ontop it. Once I removed all the docket cache data
   before migrate, it worked.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Docket Cache - Object Cache Accelerator] PHP FPM Segfault with Object Cache Enabled](https://wordpress.org/support/topic/php-fpm-segfault-with-object-cache-enabled/)
 *  Thread Starter [Kevin Shenk](https://wordpress.org/support/users/batonac/)
 * (@batonac)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php-fpm-segfault-with-object-cache-enabled/#post-16323879)
 * Upon further diagnosis, this seems to be related to my backup/restore/migrate
   mechanism. Apparently stale and misplaced cache can be lethal. I’ll keep you 
   posted.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Docket Cache - Object Cache Accelerator] PHP FPM Segfault with Object Cache Enabled](https://wordpress.org/support/topic/php-fpm-segfault-with-object-cache-enabled/)
 *  Thread Starter [Kevin Shenk](https://wordpress.org/support/users/batonac/)
 * (@batonac)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php-fpm-segfault-with-object-cache-enabled/#post-16323283)
 * I should have mentioned, here’s my Docket Cache configuration:
 *     ```wp-block-code
       define('DOCKET_CACHE_ADVCPOST', true);
       define('DOCKET_CACHE_ADVPOST_POSTTYPE_ALL', true);
       define('DOCKET_CACHE_AUTOUPDATE', false);
       define('DOCKET_CACHE_CHECKVERSION', false);
       define('DOCKET_CACHE_CRONBOT', false);
       define('DOCKET_CACHE_CRONOPTMZDB', 'weekly');
       define('DOCKET_CACHE_FLUSHACTION', true);
       define('DOCKET_CACHE_GCACTION', true);
       define('DOCKET_CACHE_HEADERJUNK', true);
       define('DOCKET_CACHE_LIMITHTTPREQUEST', true);
       define('DOCKET_CACHE_LOG', false);
       define('DOCKET_CACHE_LOG_ALL', false);
       define('DOCKET_CACHE_MENUCACHE', true);
       define('DOCKET_CACHE_MISC_TWEAKS', true);
       define('DOCKET_CACHE_MOCACHE', true);
       define('DOCKET_CACHE_OPCSHUTDOWN', true);
       define('DOCKET_CACHE_OPTERMCOUNT', true);
       define('DOCKET_CACHE_OPTWPQUERY', true);
       define('DOCKET_CACHE_PAGELOADER', false);
       define('DOCKET_CACHE_PINGBACK', true);
       define('DOCKET_CACHE_POSTMISSEDSCHEDULE', true);
       define('DOCKET_CACHE_PRECACHE', false);
       define('DOCKET_CACHE_PRELOAD', true);
       define('DOCKET_CACHE_RTIMAGEOVERWRITE', true);
       define('DOCKET_CACHE_SIGNATURE', true);
       define('DOCKET_CACHE_STATS', false);
       define('DOCKET_CACHE_WOOTWEAKS', true);
       define('DOCKET_CACHE_WPAPPPASSWORD', true);
       define('DOCKET_CACHE_WPBROWSEHAPPY', true);
       define('DOCKET_CACHE_WPDASHBOARDNEWS', true);
       define('DOCKET_CACHE_WPEMOJI', true);
       define('DOCKET_CACHE_WPFEED', true);
       define('DOCKET_CACHE_WPLAZYLOAD', false);
       define('DOCKET_CACHE_WPOPTALOAD', false);
       define('DOCKET_CACHE_WPSERVEHAPPY', true);
       define('DOCKET_CACHE_WPSITEMAP', true);
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple CAPTCHA with Cloudflare Turnstile] Infinite Redirect Loop on Activation](https://wordpress.org/support/topic/infinite-redirect-loop-on-activation/)
 *  Thread Starter [Kevin Shenk](https://wordpress.org/support/users/batonac/)
 * (@batonac)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/infinite-redirect-loop-on-activation/#post-16316855)
 * As it turns out, the issue was a conflict with the “Suspend WP Options Autoload”
   option in Docket Cache. I’m not sure that’s you’re problem, and perhaps its just
   inadvisable to enable that setting…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Custom Fields: Extended] Feature Request: Import from CPT UI](https://wordpress.org/support/topic/feature-request-import-from-cpt-ui/)
 *  [Kevin Shenk](https://wordpress.org/support/users/batonac/)
 * (@batonac)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/feature-request-import-from-cpt-ui/#post-15911313)
 * FYI, I believe that recognizing existing custom post types and taxonomies is 
   a different issue/request vs the ability to import others from CPT UI specifically.“
   Recognize” seems to imply the ability to modify existing custom post types, which
   could be nice, but would certainly require a whole different set of functionality.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Custom Fields: Extended] Feature Request: Import from CPT UI](https://wordpress.org/support/topic/feature-request-import-from-cpt-ui/)
 *  [Kevin Shenk](https://wordpress.org/support/users/batonac/)
 * (@batonac)
 * [4 years ago](https://wordpress.org/support/topic/feature-request-import-from-cpt-ui/#post-15743982)
 * Agreed! This is a major feature request for me!

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/users/batonac/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/batonac/replies/page/2/?output_format=md)