heme in the current request. * * @access private * * @return boolean True if this is a theme deletion request, false otherwise. */ private function get_delete_theme_call() { // Intentional usage of `debug_backtrace()` for production needs. // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_debug_backtrace $backtrace = debug_backtrace(); $delete_theme_call = null; foreach ( $backtrace as $call ) { if ( isset( $call['function'] ) && 'delete_theme' === $call['function'] ) { $delete_theme_call = $call; break; } } return $delete_theme_call; } /** * Whether we've switched to another theme in the current request. * * @access private * * @return boolean True if this is a theme switch request, false otherwise. */ private function is_theme_switch() { return did_action( 'after_switch_theme' ); } /** * Return Total number of objects. * * @param array $config Full Sync config. * * @return int total */ public function total( $config ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable return 1; } }