environment->is_active() ) { $this->batch->start( true ); } } /** * Whether an ACF save target is an options page. ACF saves options pages under a name such as "options", while posts, users, terms and widgets use numbers or a prefix. * * @param mixed $post_id ACF save target. * @return bool True for an options page. */ public static function is_options_target( mixed $post_id ): bool { if ( ! is_string( $post_id ) || '' === $post_id || is_numeric( $post_id ) ) { return false; } return 1 !== preg_match( self::NOT_OPTIONS_TARGET, $post_id ); } }